Mercurial > minori
diff src/gui/window.cc @ 115:c72b907b9bef
window: patch for Qt 5
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 07 Nov 2023 12:04:51 -0500 |
parents | ab191e28e69d |
children | 39521c47c7a3 |
line wrap: on
line diff
--- a/src/gui/window.cc Tue Nov 07 08:03:42 2023 -0500 +++ b/src/gui/window.cc Tue Nov 07 12:04:51 2023 -0500 @@ -335,7 +335,8 @@ /* Toolbar */ /* remove old toolbar(s) */ - for (QToolBar*& t : findChildren<QToolBar*>(Qt::FindDirectChildrenOnly)) { + /* the empty QString() is a Qt 5 wart... */ + for (QToolBar*& t : findChildren<QToolBar*>(QString(), Qt::FindDirectChildrenOnly)) { removeToolBar(t); delete t; }