summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/widgets/tabbedarea.h2
-rw-r--r--src/gui/windows/shortcutwindow.cpp2
-rw-r--r--src/gui/windows/skilldialog.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h
index c971da391..22e1c879e 100644
--- a/src/gui/widgets/tabbedarea.h
+++ b/src/gui/widgets/tabbedarea.h
@@ -153,7 +153,7 @@ class TabbedArea final : public ActionListener,
*/
void removeTab(Tab *const tab);
- void removeAll(const bool del = true);
+ void removeAll(const bool del);
/**
* Overload the logic function since it's broken in guichan 0.8.
diff --git a/src/gui/windows/shortcutwindow.cpp b/src/gui/windows/shortcutwindow.cpp
index ae07f449c..0cd43975b 100644
--- a/src/gui/windows/shortcutwindow.cpp
+++ b/src/gui/windows/shortcutwindow.cpp
@@ -153,7 +153,7 @@ ShortcutWindow::ShortcutWindow(const std::string &restrict title,
ShortcutWindow::~ShortcutWindow()
{
if (mTabs != nullptr)
- mTabs->removeAll();
+ mTabs->removeAll(true);
delete2(mTabs);
delete2(mItems);
}
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 64fce95cd..8eab40ac4 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -304,7 +304,7 @@ void SkillDialog::updateModels()
void SkillDialog::clearSkills()
{
- mTabs->removeAll();
+ mTabs->removeAll(true);
mDeleteTabs.clear();
mDefaultTab = nullptr;
mDefaultModel = nullptr;