File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,17 @@ void QgsComposerManager::show_clicked()
301
301
c = it.value ();
302
302
if ( c )
303
303
{
304
+ // extra activation steps for Windows
305
+ bool shown = c->isVisible ();
306
+ hide ();
307
+
304
308
c->activate ();
309
+
310
+ // extra activation steps for Windows
311
+ if ( !shown )
312
+ {
313
+ c->on_mActionZoomAll_triggered ();
314
+ }
305
315
}
306
316
}
307
317
}
@@ -378,6 +388,10 @@ void QgsComposerManager::duplicate_clicked()
378
388
379
389
if ( newComposer )
380
390
{
391
+ // extra activation steps for Windows
392
+ hide ();
393
+ newComposer->activate ();
394
+
381
395
// no need to add new composer to list widget, if just closing this->exec();
382
396
close ();
383
397
}
Original file line number Diff line number Diff line change @@ -4780,7 +4780,8 @@ bool QgisApp::loadComposersFromProject( const QDomDocument& doc )
4780
4780
mPrintComposers .insert ( composer );
4781
4781
mPrintComposersMenu ->addAction ( composer->windowAction () );
4782
4782
#ifndef Q_OS_MACX
4783
- composer->showMinimized ();
4783
+ composer->setWindowState ( Qt::WindowMinimized );
4784
+ composer->show ();
4784
4785
#endif
4785
4786
composer->zoomFull ();
4786
4787
if ( composerNodes.at ( i ).toElement ().attribute ( " visible" , " 1" ).toInt () < 1 )
You can’t perform that action at this time.
0 commit comments