summaryrefslogtreecommitdiffstats
path: root/pokemodr/PokeModrUI.cpp
diff options
context:
space:
mode:
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);
}
}