Wait for an explicit "Close" by the user instead of closing the DownloadDialog automa...
[supertux.git] / src / gui / dialog.cpp
index 260c7bf..b10f299 100644 (file)
@@ -49,6 +49,13 @@ Dialog::set_text(const std::string& text)
 }
 
 void
+Dialog::clear_buttons()
+{
+  m_buttons.clear();
+  m_selected_button = 0;
+}
+
+void
 Dialog::add_button(const std::string& text, const std::function<void ()>& callback, bool focus)
 {
   m_buttons.push_back({text, callback});