Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
9c244bcb
Commit
9c244bcb
authored
Dec 10, 2008
by
con
Browse files
Fixes: - Warning about wrong connect
Details: - Bookmarks plugin accidentally thought all editors are text editors.
parent
65f07aa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/bookmarks/bookmarksplugin.cpp
View file @
9c244bcb
...
...
@@ -201,14 +201,18 @@ void BookmarksPlugin::updateActions(int state)
void
BookmarksPlugin
::
editorOpened
(
Core
::
IEditor
*
editor
)
{
connect
(
editor
,
SIGNAL
(
markContextMenuRequested
(
TextEditor
::
ITextEditor
*
,
int
,
QMenu
*
)),
this
,
SLOT
(
requestContextMenu
(
TextEditor
::
ITextEditor
*
,
int
,
QMenu
*
)));
if
(
qobject_cast
<
ITextEditor
*>
(
editor
))
{
connect
(
editor
,
SIGNAL
(
markContextMenuRequested
(
TextEditor
::
ITextEditor
*
,
int
,
QMenu
*
)),
this
,
SLOT
(
requestContextMenu
(
TextEditor
::
ITextEditor
*
,
int
,
QMenu
*
)));
}
}
void
BookmarksPlugin
::
editorAboutToClose
(
Core
::
IEditor
*
editor
)
{
disconnect
(
editor
,
SIGNAL
(
markContextMenuRequested
(
TextEditor
::
ITextEditor
*
,
int
,
QMenu
*
)),
this
,
SLOT
(
requestContextMenu
(
TextEditor
::
ITextEditor
*
,
int
,
QMenu
*
)));
if
(
qobject_cast
<
ITextEditor
*>
(
editor
))
{
disconnect
(
editor
,
SIGNAL
(
markContextMenuRequested
(
TextEditor
::
ITextEditor
*
,
int
,
QMenu
*
)),
this
,
SLOT
(
requestContextMenu
(
TextEditor
::
ITextEditor
*
,
int
,
QMenu
*
)));
}
}
void
BookmarksPlugin
::
requestContextMenu
(
TextEditor
::
ITextEditor
*
editor
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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