Commit 1a581c41 authored by Simone Gaiarin's avatar Simone Gaiarin Committed by Albert Astals Cid
Browse files

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
parent 13481bdf
......@@ -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()
......
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