Do not setup actions on tab destruction

The toolbar actions must be setup only when a tab is selected thus
activating a different part, while nothing should happen when a tab
is closed.

BUG 423335
remotes/origin/work/aacid/annoying_braces
Simone Gaiarin 6 years ago committed by Albert Astals Cid
parent 13481bdfda
commit 1a581c4135
  1. 5
      part.cpp

@ -59,6 +59,7 @@
#include <KIO/OpenFileManagerWindowJob>
#include <KJobWidgets>
#include <KMessageBox>
#include <KParts/GUIActivateEvent>
#include <KPasswordDialog>
#include <KPluginFactory>
#include <KPluginMetaData>
@ -1824,7 +1825,9 @@ void Part::guiActivateEvent(KParts::GUIActivateEvent *event)
setWindowTitleFromDocument();
m_pageView->setupActionsPostGUIActivated();
if (event->activated()) {
m_pageView->setupActionsPostGUIActivated();
}
}
void Part::close()

Loading…
Cancel
Save