aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2018-08-22 14:40:49 +0200
committerhjk <[email protected]>2018-08-23 13:55:56 +0000
commit4b7a9ae5dba163ee126000f52e11ae9a6c4c4bac (patch)
treec7a465e82b77140bf33c3737daae4094c192555b /src/plugins/debugger/watchhandler.cpp
parent0303b84fffcb8e9599bd95d520711b791d888fbf (diff)
Debugger: Replace Internal::mainWindow
... by DebuggerMainWindow::instance() and clean up a few uses. Change-Id: I7ae4073aa97fc2f00108533bed91db330b07880f Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 6bd122e9aed..62108c6d64c 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -31,6 +31,7 @@
#include "debuggerdialogs.h"
#include "debuggerengine.h"
#include "debuggerinternalconstants.h"
+#include "debuggermainwindow.h"
#include "debuggerprotocol.h"
#include "debuggertooltipmanager.h"
#include "imageviewer.h"
@@ -269,7 +270,7 @@ static void saveFormats()
class SeparatedView : public QTabWidget
{
public:
- SeparatedView() : QTabWidget(Internal::mainWindow())
+ SeparatedView() : QTabWidget(DebuggerMainWindow::instance())
{
setTabsClosable(true);
connect(this, &QTabWidget::tabCloseRequested, this, &SeparatedView::closeTab);
@@ -1975,8 +1976,7 @@ void WatchHandler::cleanup()
saveWatchers();
m_model->reinitialize();
emit m_model->updateFinished();
- if (Internal::mainWindow())
- m_model->m_separatedView->hide();
+ m_model->m_separatedView->hide();
}
static bool sortByName(const WatchItem *a, const WatchItem *b)