summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/editorwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/editorwindow.cpp')
-rw-r--r--utils/themeeditor/editorwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp
index ca5f8bfa73..23724ee1ad 100644
--- a/utils/themeeditor/editorwindow.cpp
+++ b/utils/themeeditor/editorwindow.cpp
@@ -166,10 +166,10 @@ void EditorWindow::shiftTab(int index)
else
{
/* Syncing the tree view and the status bar */
- ui->parseTree->setModel(dynamic_cast<SkinDocument*>
- (ui->editorTabs->currentWidget())->getModel());
- parseStatus->setText(dynamic_cast<SkinDocument*>
- (ui->editorTabs->currentWidget())->getStatus());
+ SkinDocument* doc = dynamic_cast<SkinDocument*>
+ (ui->editorTabs->currentWidget());
+ ui->parseTree->setModel(doc->getModel());
+ parseStatus->setText(doc->getStatus());
ui->actionSave_Document->setEnabled(true);
ui->actionSave_Document_As->setEnabled(true);