diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-09 22:10:24 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-09 22:10:24 +0000 |
| commit | 3d877ca28bcb7c70945ff408bd0273e176472969 (patch) | |
| tree | b7789493be9b11856ea9068ddcf514d22a0ec56b /pokemodr/PokeModrUI.cpp | |
| parent | 32a23089b9e2dfe59b3e70be814d8eee9ed9fb61 (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.cpp | 9 |
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); } } |
