From 3d877ca28bcb7c70945ff408bd0273e176472969 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 9 May 2008 22:10:24 +0000 Subject: [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 --- pokemodr/PokeModrUI.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pokemodr/PokeModrUI.cpp') 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); } } -- cgit