summaryrefslogtreecommitdiffstats
path: root/pokemodr/PokeModrUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-09 22:10:24 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-09 22:10:24 +0000
commit3d877ca28bcb7c70945ff408bd0273e176472969 (patch)
treeb7789493be9b11856ea9068ddcf514d22a0ec56b /pokemodr/PokeModrUI.cpp
parent32a23089b9e2dfe59b3e70be814d8eee9ed9fb61 (diff)
[FIX] More test code for the tree bug
[FIX] Rules now a pointer in Pokemod git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@123 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/PokeModrUI.cpp')
-rw-r--r--pokemodr/PokeModrUI.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/pokemodr/PokeModrUI.cpp b/pokemodr/PokeModrUI.cpp
index 3b7049df..e09b4de6 100644
--- a/pokemodr/PokeModrUI.cpp
+++ b/pokemodr/PokeModrUI.cpp
@@ -45,12 +45,12 @@
PokeModrUI::PokeModrUI(KConfigGroup config, KConfigGroup history, QWidget* parent) :
KMainWindow(parent),
m_config(config),
- m_recent("&Recent Files...", NULL),
+ m_recent(new KRecentFilesAction("&Recent Files...", NULL)),
m_clipboard(NULL)
{
setupUi(this);
QMetaObject::connectSlotsByName(this);
- m_recent.loadEntries(history);
+ m_recent->loadEntries(history);
KMenuBar* menubar = new KMenuBar(this);
KMenu* menuFile = new KMenu("&File", menubar);
menuFile->addAction(KStandardAction::openNew(this, SLOT(on_actionNew_triggered()), menuFile));
@@ -122,6 +122,7 @@ PokeModrUI::PokeModrUI(KConfigGroup config, KConfigGroup history, QWidget* paren
PokeModrUI::~PokeModrUI()
{
+ delete m_recent;
// on_actionQuit_triggered();
}
@@ -130,8 +131,8 @@ void PokeModrUI::openPokeMod(const KUrl& path)
if (path.isLocalFile())
{
// m_pokemods.append(new Pokemod(path.path()));
- m_recent.addUrl(path);
- m_recent.saveEntries(m_config);
+ m_recent->addUrl(path);
+ m_recent->saveEntries(m_config);
}
}