Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
18dd5bd0
Commit
18dd5bd0
authored
Feb 05, 2011
by
Kurt Hindenburg
Browse files
Fix issue where the context menu popup no longer appeared after closing
a tab. Backport to 4.6 branch.
CCBUG: 185466
parent
c19655a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/MainWindow.cpp
View file @
18dd5bd0
...
...
@@ -86,6 +86,8 @@ MainWindow::MainWindow()
connect
(
_viewManager
,
SIGNAL
(
empty
())
,
this
,
SLOT
(
close
())
);
connect
(
_viewManager
,
SIGNAL
(
activeViewChanged
(
SessionController
*
))
,
this
,
SLOT
(
activeViewChanged
(
SessionController
*
))
);
connect
(
_viewManager
,
SIGNAL
(
unplugController
(
SessionController
*
))
,
this
,
SLOT
(
disconnectController
(
SessionController
*
))
);
connect
(
_viewManager
,
SIGNAL
(
viewPropertiesChanged
(
const
QList
<
ViewProperties
*>&
))
,
bookmarkHandler
()
,
SLOT
(
setViews
(
const
QList
<
ViewProperties
*>&
))
);
...
...
src/MainWindow.h
View file @
18dd5bd0
...
...
@@ -161,6 +161,7 @@ class MainWindow : public KXmlGuiWindow
void
showShortcutsDialog
();
void
newFromProfile
(
Profile
::
Ptr
profile
);
void
activeViewChanged
(
SessionController
*
controller
);
void
disconnectController
(
SessionController
*
controller
);
void
activeViewTitleChanged
(
ViewProperties
*
);
void
sessionListChanged
(
const
QList
<
QAction
*>&
actions
);
...
...
@@ -181,7 +182,6 @@ class MainWindow : public KXmlGuiWindow
void
setupActions
();
void
setupWidgets
();
QString
activeSessionDir
()
const
;
void
disconnectController
(
SessionController
*
controller
);
// sets the active shortcuts of actions in 'dest' to the shortcuts of actions
// with the same name in 'source' (see KAction::ActiveShortcut)
...
...
src/ViewManager.cpp
View file @
18dd5bd0
...
...
@@ -377,6 +377,10 @@ void ViewManager::sessionFinished()
}
}
// This is needed to remove this controller from factory() in
// order to prevent BUG: 185466 - disappearing menu popup
if
(
_pluggedController
)
emit
unplugController
(
_pluggedController
);
}
void
ViewManager
::
focusActiveView
()
...
...
src/ViewManager.h
View file @
18dd5bd0
...
...
@@ -175,6 +175,12 @@ signals:
*/
void
activeViewChanged
(
SessionController
*
controller
);
/**
* Emitted when the current session needs unplugged from factory().
* @param controller The controller associated with the active view
*/
void
unplugController
(
SessionController
*
controller
);
/**
* Emitted when the list of view properties ( as returned by viewProperties() ) changes.
* This occurs when views are added to or removed from the active container, or
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment