summaryrefslogtreecommitdiffstats
path: root/pokemodr/PokeModrUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/PokeModrUI.cpp')
-rw-r--r--pokemodr/PokeModrUI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/pokemodr/PokeModrUI.cpp b/pokemodr/PokeModrUI.cpp
index 7e007ce5..214eb673 100644
--- a/pokemodr/PokeModrUI.cpp
+++ b/pokemodr/PokeModrUI.cpp
@@ -102,7 +102,7 @@ void PokeModrUI::setDirty(const bool dirty)
void PokeModrUI::newPokemod()
{
- treePokemod->addPokemod(new Pokemod());
+ treePokemod->addPokemod(new Pokemod);
}
void PokeModrUI::openPokemod()
@@ -325,6 +325,7 @@ void PokeModrUI::on_treePokemod_clicked(const QModelIndex& index)
connect(widget, SIGNAL(changed(bool)), this, SLOT(setChangedTitle(bool)));
connect(widget, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
connect(buttonApply, SIGNAL(clicked()), widget, SLOT(apply()));
+ connect(buttonApply, SIGNAL(clicked()), treePokemod, SLOT(setDirty()));
connect(buttonDiscard, SIGNAL(clicked()), widget, SLOT(discard()));
setChangedTitle(false);
formPanel->setWidget(widget);
@@ -350,6 +351,7 @@ void PokeModrUI::on_treePokemod_customContextMenuRequested(const QPoint& positio
paste->setEnabled(m_clipboard.doctype().name() == type);
}
menu->addAction(paste);
+ connect(menu, SIGNAL(triggered(QAction*)), treePokemod, SLOT(setDirty()));
menu->popup(treePokemod->mapToGlobal(position));
}
}