diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:03:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:03:06 +0300 |
commit | da72060e41c6e10e78eef1bbc740ad7bdfccf5cc (patch) | |
tree | e4eaaad2ef2a412bd8bf74ba68b92c991d27293b /src/gui/windows/editserverdialog.cpp | |
parent | 2d6c31851b610561f3376d49b2327919c5edf985 (diff) | |
download | plus-da72060e41c6e10e78eef1bbc740ad7bdfccf5cc.tar.gz plus-da72060e41c6e10e78eef1bbc740ad7bdfccf5cc.tar.bz2 plus-da72060e41c6e10e78eef1bbc740ad7bdfccf5cc.tar.xz plus-da72060e41c6e10e78eef1bbc740ad7bdfccf5cc.zip |
Use CREATEWIDGET macro in editserverdialog.
Diffstat (limited to 'src/gui/windows/editserverdialog.cpp')
-rw-r--r-- | src/gui/windows/editserverdialog.cpp | 5 |
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 |