Skip to content

Commit

Permalink
Fix missing break, warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 15, 2018
1 parent 12c8f39 commit 75fe94f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/plugins/offline_editing/offline_editing_plugin_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ QVariant QgsSelectLayerTreeModel::data( const QModelIndex &index, int role ) con
"please check with your system administrator<br>"
"if this WFS layer can be used for offline<br>"
"editing." );
break;

case Qt::DecorationRole:
return QgsApplication::getThemeIcon( "/mIconWarning.svg" );
break;
return QgsApplication::getThemeIcon( QStringLiteral( "/mIconWarning.svg" ) );
}
}
}
Expand Down Expand Up @@ -177,7 +176,9 @@ void QgsOfflineEditingPluginGui::mBrowseButton_clicked()
mOfflineDataPath = QFileInfo( fileName ).absolutePath();
mOfflineDataPathLineEdit->setText( fileName );
}
break;
}

case QgsOfflineEditing::SpatiaLite:
{
//SpaciaLite
Expand All @@ -197,6 +198,7 @@ void QgsOfflineEditingPluginGui::mBrowseButton_clicked()
mOfflineDataPath = QFileInfo( fileName ).absolutePath();
mOfflineDataPathLineEdit->setText( fileName );
}
break;
}
}
}
Expand Down

0 comments on commit 75fe94f

Please sign in to comment.