summaryrefslogtreecommitdiffstats
path: root/pokemodr/PokeModrUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/PokeModrUI.cpp')
-rw-r--r--pokemodr/PokeModrUI.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/pokemodr/PokeModrUI.cpp b/pokemodr/PokeModrUI.cpp
index 4df5f88d..e96e08b7 100644
--- a/pokemodr/PokeModrUI.cpp
+++ b/pokemodr/PokeModrUI.cpp
@@ -120,6 +120,7 @@ PokeModrUI::PokeModrUI(KConfigGroup config, KConfigGroup history, QWidget* paren
// }
setAutoSaveSettings("MainWindow", true);
treePokemod->setModel(new PokemodTreeModel(QStringList(), treePokemod));
+ connect(buttonApply, SIGNAL(clicked()), this, SLOT(update()));
}
PokeModrUI::~PokeModrUI()
@@ -128,6 +129,11 @@ PokeModrUI::~PokeModrUI()
// on_actionQuit_triggered();
}
+void PokeModrUI::update()
+{
+ treePokemod->update(treePokemod->currentIndex());
+}
+
void PokeModrUI::closeEvent(QCloseEvent* event)
{
quit();
@@ -217,7 +223,6 @@ void PokeModrUI::saveAsPokemod()
void PokeModrUI::closePokeMod()
{
-
// TODO: Close the Pokemod with the current editor open
// if (formPanel->widget())
// {