Navigation Menu

Skip to content

Commit

Permalink
Fix file write error when offline.sqlite is saved to root dir by default
Browse files Browse the repository at this point in the history
- Default to user's home directory instead
  • Loading branch information
dakcarto committed Jun 15, 2016
1 parent b51cd2e commit 23a3273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/offline_editing/offline_editing_plugin_gui.cpp
Expand Up @@ -170,7 +170,7 @@ void QgsOfflineEditingPluginGui::on_buttonBox_helpRequested()
void QgsOfflineEditingPluginGui::restoreState()
{
QSettings settings;
mOfflineDataPath = settings.value( "Plugin-OfflineEditing/offline_data_path", QDir().absolutePath() ).toString();
mOfflineDataPath = settings.value( "Plugin-OfflineEditing/offline_data_path", QDir::homePath() ).toString();
restoreGeometry( settings.value( "Plugin-OfflineEditing/geometry" ).toByteArray() );
}

Expand Down

0 comments on commit 23a3273

Please sign in to comment.