summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 19:03:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 19:03:06 +0300
commitda72060e41c6e10e78eef1bbc740ad7bdfccf5cc (patch)
treee4eaaad2ef2a412bd8bf74ba68b92c991d27293b /src
parent2d6c31851b610561f3376d49b2327919c5edf985 (diff)
downloadmanaplus-da72060e41c6e10e78eef1bbc740ad7bdfccf5cc.tar.gz
manaplus-da72060e41c6e10e78eef1bbc740ad7bdfccf5cc.tar.bz2
manaplus-da72060e41c6e10e78eef1bbc740ad7bdfccf5cc.tar.xz
manaplus-da72060e41c6e10e78eef1bbc740ad7bdfccf5cc.zip
Use CREATEWIDGET macro in editserverdialog.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/editserverdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp
index 5fb3ac714..801c4f756 100644
--- a/src/gui/windows/editserverdialog.cpp
+++ b/src/gui/windows/editserverdialog.cpp
@@ -28,6 +28,7 @@
#include "gui/widgets/button.h"
#include "gui/widgets/checkbox.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/dropdown.h"
#include "gui/widgets/label.h"
#include "gui/widgets/layout.h"
@@ -206,7 +207,8 @@ void EditServerDialog::action(const ActionEvent &event)
|| mPortField->getText().empty())
{
// TRANSLATORS: edit server dialog error header
- OkDialog *const dlg = new OkDialog(_("Error"),
+ OkDialog *const dlg = CREATEWIDGETR(OkDialog,
+ _("Error"),
// TRANSLATORS: edit server dialog error message
_("Please at least type both the address and the port "
"of the server."),
@@ -217,7 +219,6 @@ void EditServerDialog::action(const ActionEvent &event)
ShowCenter_true,
nullptr,
260);
- dlg->postInit();
dlg->addActionListener(this);
}
else