Skip to content

Commit

Permalink
Fix main window rearranging itself to front when opening composer man…
Browse files Browse the repository at this point in the history
…ager or new composer dialog from a composition
  • Loading branch information
nyalldawson committed May 20, 2014
1 parent 72ee2e6 commit a94483e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/app/composer/qgscomposer.cpp 100644 → 100755
Expand Up @@ -2310,7 +2310,12 @@ void QgsComposer::on_mActionSaveProject_triggered()

void QgsComposer::on_mActionNewComposer_triggered()
{
mQgis->actionNewPrintComposer()->trigger();
QString title = mQgis->uniqueComposerTitle( this, true );
if ( title.isNull() )
{
return;
}
mQgis->createNewComposer( title );
}

void QgsComposer::on_mActionDuplicateComposer_triggered()
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp 100644 → 100755
Expand Up @@ -3946,7 +3946,7 @@ void QgisApp::showComposerManager()
{
if ( !mComposerManager )
{
mComposerManager = new QgsComposerManager( this, Qt::Window );
mComposerManager = new QgsComposerManager( 0, Qt::Window );
connect( mComposerManager, SIGNAL( finished( int ) ), this, SLOT( deleteComposerManager() ) );
}
mComposerManager->show();
Expand Down

0 comments on commit a94483e

Please sign in to comment.