From 39f265e503e11f2e48e7a54129f216b55e288ac3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 20 Mar 2016 23:31:01 +0300 Subject: Not allow close warp dialog until select warp target. --- src/gui/windows/textselectdialog.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/textselectdialog.h') diff --git a/src/gui/windows/textselectdialog.h b/src/gui/windows/textselectdialog.h index 800f7cee4..70da4ad5e 100644 --- a/src/gui/windows/textselectdialog.h +++ b/src/gui/windows/textselectdialog.h @@ -25,6 +25,8 @@ #include "gui/widgets/window.h" +#include "enums/simpletypes/allowquit.h" + #include "listeners/actionlistener.h" #include "listeners/selectionlistener.h" @@ -42,7 +44,8 @@ class TextSelectDialog notfinal : public Window, * Constructor. */ TextSelectDialog(const std::string &name, - const std::string &selectButton); + const std::string &selectButton, + const AllowQuit allowQuit); A_DELETE_COPY(TextSelectDialog) @@ -94,6 +97,7 @@ class TextSelectDialog notfinal : public Window, ListBox *mItemList A_NONNULLPOINTER; ScrollArea *mScrollArea A_NONNULLPOINTER; NamesModel *mModel A_NONNULLPOINTER; + AllowQuit mAllowQuit; int mTag; }; -- cgit v1.2.3-60-g2f50