Commit 42320595 authored by Carlos Alves's avatar Carlos Alves Committed by Kurt Hindenburg
Browse files

Fix plugin menu visual checked problem

It is not unchecking the "Show SSH Manager" when closing the
dockWidget with the Close icon.

It is not checking the the box when the dockWidget opens with the
parent 7c0198f9
......@@ -67,10 +67,11 @@ QList<QAction *> SSHManagerPlugin::menuBarActions(Konsole::MainWindow* mainWindo
QAction *toggleVisibilityAction = new QAction(i18n("Show SSH Manager"), mainWindow);
connect(toggleVisibilityAction, &QAction::triggered,
d->dockForWindow[mainWindow], &QDockWidget::setVisible);
connect(d->dockForWindow[mainWindow], &QDockWidget::visibilityChanged,
toggleVisibilityAction, &QAction::setChecked);
return {toggleVisibilityAction};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment