Skip to content

Commit e0b1d37

Browse files
committed
[ui] sort items in the view > panels sub-menu
1 parent 8697c79 commit e0b1d37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/qgisapp.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,10 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
12581258

12591259
setupDuplicateFeaturesAction();
12601260

1261+
QList<QAction *> actions = mPanelMenu->actions();
1262+
std::sort( actions.begin(), actions.end(), cmpByText_ );
1263+
mPanelMenu->insertActions( nullptr, actions );
1264+
12611265
// update windows
12621266
qApp->processEvents();
12631267

0 commit comments

Comments
 (0)