@@ -753,6 +753,7 @@ void QgisApp::createMenus()
753753 mFileMenu ->addAction (mActionFileSave );
754754 mFileMenu ->addAction (mActionFileSaveAs );
755755 mFileMenu ->addAction (mActionSaveMapAsImage );
756+ mFileMenu ->addSeparator ();
756757 mFileMenu ->addAction (mActionExportMapServer );
757758 mFileMenu ->addAction (mActionFilePrint );
758759 mFileMenu ->addSeparator ();
@@ -766,8 +767,10 @@ void QgisApp::createMenus()
766767 mViewMenu ->addAction (mActionZoomToLayer );
767768 mViewMenu ->addAction (mActionZoomLast );
768769 mViewMenu ->addAction (mActionDraw );
770+ mViewMenu ->addSeparator ();
769771 mViewMenu ->addAction (mActionShowBookmarks );
770772 mViewMenu ->addAction (mActionNewBookmark );
773+ mViewMenu ->addSeparator ();
771774 mToolbarMenu = mViewMenu ->addMenu (QIcon (myIconPath+" /mActionOptions.png" ),
772775 tr (" &Toolbars..." ));
773776
@@ -785,11 +788,14 @@ void QgisApp::createMenus()
785788 mLayerMenu ->addAction (mActionAddLayer );
786789#endif
787790 mLayerMenu ->addAction (mActionAddWmsLayer );
791+ mLayerMenu ->addSeparator ();
788792 mLayerMenu ->addAction (mActionRemoveLayer );
789793 mLayerMenu ->addAction (mActionNewVectorLayer );
794+ mLayerMenu ->addSeparator ();
790795 mLayerMenu ->addAction (mActionInOverview );
791796 mLayerMenu ->addAction (mActionAddAllToOverview );
792797 mLayerMenu ->addAction (mActionRemoveAllFromOverview );
798+ mLayerMenu ->addSeparator ();
793799 mLayerMenu ->addAction (mActionHideAllLayers );
794800 mLayerMenu ->addAction (mActionShowAllLayers );
795801
@@ -804,6 +810,7 @@ void QgisApp::createMenus()
804810 // Plugins Menu
805811 mPluginMenu = menuBar ()->addMenu (tr (" &Plugins" ));
806812 mPluginMenu ->addAction (mActionShowPluginManager );
813+ mPluginMenu ->addSeparator ();
807814
808815 // Add the plugin manager action to it
809816 // actionPluginManager->addTo(mPluginMenu);
@@ -816,8 +823,10 @@ void QgisApp::createMenus()
816823 menuBar ()->addSeparator ();
817824 mHelpMenu = menuBar ()->addMenu (tr (" &Help" ));
818825 mHelpMenu ->addAction (mActionHelpContents );
826+ mHelpMenu ->addSeparator ();
819827 mHelpMenu ->addAction (mActionQgisHomePage );
820828 mHelpMenu ->addAction (mActionCheckQgisVersion );
829+ mHelpMenu ->addSeparator ();
821830 mHelpMenu ->addAction (mActionHelpAbout );
822831}
823832
@@ -1283,8 +1292,10 @@ void QgisApp::restoreWindowState()
12831292
12841293void QgisApp::about ()
12851294{
1295+ static QgsAbout *abt = NULL ;
1296+ if (!abt) {
12861297 QApplication::setOverrideCursor (Qt::WaitCursor);
1287- QgsAbout * abt = new QgsAbout ();
1298+ abt = new QgsAbout ();
12881299 QString versionString = tr (" Version " );
12891300 versionString += QGis::qgisVersion;
12901301 versionString += " (" ;
@@ -1358,9 +1369,10 @@ abt->setWhatsNew(watsNew);
13581369 QString providerInfo = " <b>" + tr (" Available Data Provider Plugins" ) + " </b><br>" ;
13591370 abt->setPluginInfo (providerInfo + mProviderRegistry ->pluginList (true ));
13601371 QApplication::restoreOverrideCursor ();
1372+ }
13611373 abt->show ();
1362- abt->exec ();
1363-
1374+ abt->raise ();
1375+ abt-> setActiveWindow ();
13641376}
13651377
13661378/* * Load up any plugins used in the last session
@@ -5290,7 +5302,7 @@ void QgisApp::showBookmarks()
52905302 static QgsBookmarks *bookmarks = NULL ;
52915303 if (bookmarks == NULL )
52925304 {
5293- bookmarks = new QgsBookmarks (this );
5305+ bookmarks = new QgsBookmarks (this , Qt::WindowMinMaxButtonsHint );
52945306 }
52955307 bookmarks->show ();
52965308 bookmarks->raise ();
0 commit comments