Skip to content

Commit

Permalink
Fix geometry save/restore for snapping configuration dialog, make
Browse files Browse the repository at this point in the history
dialog a Tool window type
  • Loading branch information
nyalldawson committed Feb 10, 2020
1 parent b4c359a commit 9cdf76a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -1132,7 +1132,8 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
} }
else else
{ {
QDialog *dialog = new QDialog( this ); QDialog *dialog = new QDialog( this, Qt::Tool );
dialog->setObjectName( QStringLiteral( "snappingSettings" ) );
dialog->setWindowTitle( tr( "Project Snapping Settings" ) ); dialog->setWindowTitle( tr( "Project Snapping Settings" ) );
QgsGui::instance()->enableAutoGeometryRestore( dialog ); QgsGui::instance()->enableAutoGeometryRestore( dialog );
QVBoxLayout *layout = new QVBoxLayout( dialog ); QVBoxLayout *layout = new QVBoxLayout( dialog );
Expand Down

0 comments on commit 9cdf76a

Please sign in to comment.