From 594d734143a8a9df49dcec3f80a8588fa3fdb836 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Mon, 7 Jun 2010 21:09:13 +0000 Subject: Theme Editor: Added a clear erros function to the parser git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26673 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/editorwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/themeeditor/editorwindow.cpp') diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp index ca5f8bf..23724ee 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 - (ui->editorTabs->currentWidget())->getModel()); - parseStatus->setText(dynamic_cast - (ui->editorTabs->currentWidget())->getStatus()); + SkinDocument* doc = dynamic_cast + (ui->editorTabs->currentWidget()); + ui->parseTree->setModel(doc->getModel()); + parseStatus->setText(doc->getStatus()); ui->actionSave_Document->setEnabled(true); ui->actionSave_Document_As->setEnabled(true); -- cgit v1.1