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
Tobias Hunger
qt-creator
Commits
2f79b60f
Commit
2f79b60f
authored
Mar 24, 2010
by
Thomas Hartmann
Browse files
QmlDesigner: fix warnings
parent
a3ef5e2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designmodewidget.cpp
View file @
2f79b60f
...
...
@@ -446,12 +446,14 @@ void DesignModeWidget::setCurrentDocument(DesignDocumentController *newDesignDoc
saveSettings
();
}
disconnect
(
currentDesignDocumentController
(),
SIGNAL
(
undoAvailable
(
bool
)),
this
,
SLOT
(
undoAvailable
(
bool
)));
disconnect
(
currentDesignDocumentController
(),
SIGNAL
(
redoAvailable
(
bool
)),
this
,
SLOT
(
redoAvailable
(
bool
)));
disconnect
(
currentDesignDocumentController
(),
SIGNAL
(
deleteAvailable
(
bool
)),
this
,
SLOT
(
deleteAvailable
(
bool
)));
if
(
currentDesignDocumentController
())
{
disconnect
(
currentDesignDocumentController
(),
SIGNAL
(
undoAvailable
(
bool
)),
this
,
SLOT
(
undoAvailable
(
bool
)));
disconnect
(
currentDesignDocumentController
(),
SIGNAL
(
redoAvailable
(
bool
)),
this
,
SLOT
(
redoAvailable
(
bool
)));
disconnect
(
currentDesignDocumentController
(),
SIGNAL
(
deleteAvailable
(
bool
)),
this
,
SLOT
(
deleteAvailable
(
bool
)));
}
m_currentDesignDocumentController
=
newDesignDocumentController
;
...
...
@@ -459,8 +461,6 @@ void DesignModeWidget::setCurrentDocument(DesignDocumentController *newDesignDoc
this
,
SLOT
(
undoAvailable
(
bool
)));
connect
(
currentDesignDocumentController
(),
SIGNAL
(
redoAvailable
(
bool
)),
this
,
SLOT
(
redoAvailable
(
bool
)));
connect
(
currentDesignDocumentController
(),
SIGNAL
(
deleteAvailable
(
bool
)),
this
,
SLOT
(
deleteAvailable
(
bool
)));
if
(
m_currentDesignDocumentController
)
{
...
...
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