Skip to content

Commit

Permalink
gui: Qt5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ctlcltd committed Jun 13, 2023
1 parent 82d3d08 commit 18d3358
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/mainView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,12 @@ QMenu* mainView::servicesSetsCornerMenu()

QMenu* menu = this->action.scrn_sets_menu;

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
auto actions = menu->menuInAction(menu->actions().first())->actions();
#else
auto actions = menu->actions().first()->menu()->actions();
#endif

int lamedb_ver = dbih->get_lamedb_version();
int zapit_ver = dbih->get_zapit_version();

Expand Down

0 comments on commit 18d3358

Please sign in to comment.