@@ -753,6 +753,7 @@ void QgisApp::createMenus()
753
753
mFileMenu ->addAction (mActionFileSave );
754
754
mFileMenu ->addAction (mActionFileSaveAs );
755
755
mFileMenu ->addAction (mActionSaveMapAsImage );
756
+ mFileMenu ->addSeparator ();
756
757
mFileMenu ->addAction (mActionExportMapServer );
757
758
mFileMenu ->addAction (mActionFilePrint );
758
759
mFileMenu ->addSeparator ();
@@ -766,8 +767,10 @@ void QgisApp::createMenus()
766
767
mViewMenu ->addAction (mActionZoomToLayer );
767
768
mViewMenu ->addAction (mActionZoomLast );
768
769
mViewMenu ->addAction (mActionDraw );
770
+ mViewMenu ->addSeparator ();
769
771
mViewMenu ->addAction (mActionShowBookmarks );
770
772
mViewMenu ->addAction (mActionNewBookmark );
773
+ mViewMenu ->addSeparator ();
771
774
mToolbarMenu = mViewMenu ->addMenu (QIcon (myIconPath+" /mActionOptions.png" ),
772
775
tr (" &Toolbars..." ));
773
776
@@ -785,11 +788,14 @@ void QgisApp::createMenus()
785
788
mLayerMenu ->addAction (mActionAddLayer );
786
789
#endif
787
790
mLayerMenu ->addAction (mActionAddWmsLayer );
791
+ mLayerMenu ->addSeparator ();
788
792
mLayerMenu ->addAction (mActionRemoveLayer );
789
793
mLayerMenu ->addAction (mActionNewVectorLayer );
794
+ mLayerMenu ->addSeparator ();
790
795
mLayerMenu ->addAction (mActionInOverview );
791
796
mLayerMenu ->addAction (mActionAddAllToOverview );
792
797
mLayerMenu ->addAction (mActionRemoveAllFromOverview );
798
+ mLayerMenu ->addSeparator ();
793
799
mLayerMenu ->addAction (mActionHideAllLayers );
794
800
mLayerMenu ->addAction (mActionShowAllLayers );
795
801
@@ -804,6 +810,7 @@ void QgisApp::createMenus()
804
810
// Plugins Menu
805
811
mPluginMenu = menuBar ()->addMenu (tr (" &Plugins" ));
806
812
mPluginMenu ->addAction (mActionShowPluginManager );
813
+ mPluginMenu ->addSeparator ();
807
814
808
815
// Add the plugin manager action to it
809
816
// actionPluginManager->addTo(mPluginMenu);
@@ -816,8 +823,10 @@ void QgisApp::createMenus()
816
823
menuBar ()->addSeparator ();
817
824
mHelpMenu = menuBar ()->addMenu (tr (" &Help" ));
818
825
mHelpMenu ->addAction (mActionHelpContents );
826
+ mHelpMenu ->addSeparator ();
819
827
mHelpMenu ->addAction (mActionQgisHomePage );
820
828
mHelpMenu ->addAction (mActionCheckQgisVersion );
829
+ mHelpMenu ->addSeparator ();
821
830
mHelpMenu ->addAction (mActionHelpAbout );
822
831
}
823
832
@@ -1283,8 +1292,10 @@ void QgisApp::restoreWindowState()
1283
1292
1284
1293
void QgisApp::about ()
1285
1294
{
1295
+ static QgsAbout *abt = NULL ;
1296
+ if (!abt) {
1286
1297
QApplication::setOverrideCursor (Qt::WaitCursor);
1287
- QgsAbout * abt = new QgsAbout ();
1298
+ abt = new QgsAbout ();
1288
1299
QString versionString = tr (" Version " );
1289
1300
versionString += QGis::qgisVersion;
1290
1301
versionString += " (" ;
@@ -1358,9 +1369,10 @@ abt->setWhatsNew(watsNew);
1358
1369
QString providerInfo = " <b>" + tr (" Available Data Provider Plugins" ) + " </b><br>" ;
1359
1370
abt->setPluginInfo (providerInfo + mProviderRegistry ->pluginList (true ));
1360
1371
QApplication::restoreOverrideCursor ();
1372
+ }
1361
1373
abt->show ();
1362
- abt->exec ();
1363
-
1374
+ abt->raise ();
1375
+ abt-> setActiveWindow ();
1364
1376
}
1365
1377
1366
1378
/* * Load up any plugins used in the last session
@@ -5290,7 +5302,7 @@ void QgisApp::showBookmarks()
5290
5302
static QgsBookmarks *bookmarks = NULL ;
5291
5303
if (bookmarks == NULL )
5292
5304
{
5293
- bookmarks = new QgsBookmarks (this );
5305
+ bookmarks = new QgsBookmarks (this , Qt::WindowMinMaxButtonsHint );
5294
5306
}
5295
5307
bookmarks->show ();
5296
5308
bookmarks->raise ();
0 commit comments