mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-03 23:29:06 +00:00
Remove unneeded code for toggeling dockwidget visibility
QDockWidget::toggleViewAction::toggled is emitted when minimizing the application window on X11 (https://bugreports.qt.io/browse/QTBUG-48161 potentially related). This will cause the dockwidget to be hidden when minimizing the window. We don't actually seem to need that connection, triggering the action (via shortcut or menu) seems to correctly show/hide the dockwidget without it BUG: 481952
This commit is contained in:
parent
c8b3d90a57
commit
95551f4492
|
@ -2619,8 +2619,6 @@ void DolphinMainWindow::createPanelAction(const QIcon &icon, const QKeySequence
|
||||||
|
|
||||||
QAction *panelAction = actionCollection()->addAction(actionName, dockAction);
|
QAction *panelAction = actionCollection()->addAction(actionName, dockAction);
|
||||||
actionCollection()->setDefaultShortcut(panelAction, shortcut);
|
actionCollection()->setDefaultShortcut(panelAction, shortcut);
|
||||||
|
|
||||||
connect(panelAction, &QAction::toggled, dockWidget, &QWidget::setVisible);
|
|
||||||
}
|
}
|
||||||
// clang-format off
|
// clang-format off
|
||||||
void DolphinMainWindow::setupWhatsThis()
|
void DolphinMainWindow::setupWhatsThis()
|
||||||
|
|
Loading…
Reference in a new issue