1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Make the maps submenus work with large amount of items

This commit is contained in:
Martin Tůma 2020-12-05 12:25:59 +01:00
parent abd1dc2450
commit e63ad7a244

View File

@ -1511,6 +1511,7 @@ void GUI::loadMapDir()
QFileInfo fi(dir);
QMenu *menu = new QMenu(fi.fileName());
menu->setStyleSheet("QMenu { menu-scrollable: 1; }");
_mapMenu->insertMenu(_mapsEnd, menu);
for (int i = 0; i < maps.size(); i++) {