Skip to content
Permalink
Browse files

Fix file write error when offline.sqlite is saved to root dir by default

- Default to user's home directory instead
  • Loading branch information
dakcarto committed Jun 15, 2016
1 parent b51cd2e commit 23a3273fe02e42161c6cf4333058b2b2f186c888
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/offline_editing/offline_editing_plugin_gui.cpp
@@ -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() );
}

0 comments on commit 23a3273

Please sign in to comment.
You can’t perform that action at this time.