Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix file write error when offline.sqlite is saved to root dir by default
- Default to user's home directory instead

(cherry-picked from 23a3273)
  • Loading branch information
dakcarto committed Jun 15, 2016
1 parent e1d5402 commit c6457a6
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 c6457a6

Please sign in to comment.