diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-03 02:11:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-04 23:57:02 +0300 |
commit | 0647852f65598ef9cb9ebff6dfb508e8b1a98c1c (patch) | |
tree | 4cc9395e820e60f3d511351b78fe187e897a8c7e /src/gui/questswindow.cpp | |
parent | c52472123eb7847b5cee6b1898c42ef25a5466dd (diff) | |
download | manaverse-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.tar.gz manaverse-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.tar.bz2 manaverse-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.tar.xz manaverse-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.zip |
Add support for default theme file names.
Diffstat (limited to 'src/gui/questswindow.cpp')
-rw-r--r-- | src/gui/questswindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp index 5ffdf45c5..8969c51e8 100644 --- a/src/gui/questswindow.cpp +++ b/src/gui/questswindow.cpp @@ -93,8 +93,8 @@ QuestsWindow::QuestsWindow() : mTextScrollArea(new ScrollArea(mText, getOptionBool("showtextbackground"))), mCloseButton(new Button(_("Close"), "close", this)), - mCompleteIcon(Theme::getImageFromThemeXml("complete_icon.xml")), - mIncompleteIcon(Theme::getImageFromThemeXml("incomplete_icon.xml")) + mCompleteIcon(Theme::getImageFromThemeXml("complete_icon.xml", "")), + mIncompleteIcon(Theme::getImageFromThemeXml("incomplete_icon.xml", "")) { setWindowName("Quests"); setResizable(true); @@ -148,6 +148,8 @@ QuestsWindow::~QuestsWindow() delete *it2; } } + delete mItemLinkHandler; + mItemLinkHandler = nullptr; mQuests.clear(); mQuestLinks.clear(); if (mCompleteIcon) |