Skip to content

Commit

Permalink
Emit newProject after save project as ...
Browse files Browse the repository at this point in the history
Fixes #29919
  • Loading branch information
elpaso committed May 30, 2019
1 parent 1d1d2ca commit 2ed0983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -6277,6 +6277,7 @@ void QgisApp::fileSaveAs()
// add this to the list of recently used project files
saveRecentProjectPath();
mProjectLastModified = fullPath.lastModified();
emit newProject();
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsbrowserdockwidget.cpp
Expand Up @@ -156,7 +156,7 @@ void QgsBrowserDockWidget::showEvent( QShowEvent *e )
mPropertiesWidgetHeight = settings.value( settingsSection() + "/propertiesWidgetHeight" ).toFloat();
QList<int> sizes = mSplitter->sizes();
int total = sizes.value( 0 ) + sizes.value( 1 );
int height = static_cast<int>( total ) * mPropertiesWidgetHeight;
int height = static_cast<int>( total * mPropertiesWidgetHeight );
sizes.clear();
sizes << total - height << height;
mSplitter->setSizes( sizes );
Expand Down

0 comments on commit 2ed0983

Please sign in to comment.