Skip to content

Commit

Permalink
[ui] sort items in the view > panels sub-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 15, 2018
1 parent 8697c79 commit e0b1d37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -1258,6 +1258,10 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh

setupDuplicateFeaturesAction();

QList<QAction *> actions = mPanelMenu->actions();
std::sort( actions.begin(), actions.end(), cmpByText_ );
mPanelMenu->insertActions( nullptr, actions );

// update windows
qApp->processEvents();

Expand Down

0 comments on commit e0b1d37

Please sign in to comment.