From 5418946d4533b6022d5e33ff740b8cefcff5be97 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 May 2013 12:57:45 +0300 Subject: improve editserverdialog. --- src/gui/editserverdialog.cpp | 8 ++------ src/gui/editserverdialog.h | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'src/gui') diff --git a/src/gui/editserverdialog.cpp b/src/gui/editserverdialog.cpp index 34d15c76c..1361951c8 100644 --- a/src/gui/editserverdialog.cpp +++ b/src/gui/editserverdialog.cpp @@ -124,7 +124,8 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent, // Do this manually instead of calling reflowLayout so we can enforce a // minimum width. - int width = 0, height = 0; + int width = 0; + int height = 0; getLayout().reflow(width, height); if (width < 300) { @@ -196,11 +197,6 @@ EditServerDialog::~EditServerDialog() delete mTypeListModel; } -void EditServerDialog::logic() -{ - Window::logic(); -} - void EditServerDialog::action(const gcn::ActionEvent &event) { const std::string &eventId = event.getId(); diff --git a/src/gui/editserverdialog.h b/src/gui/editserverdialog.h index 269abb0b1..383b8e795 100644 --- a/src/gui/editserverdialog.h +++ b/src/gui/editserverdialog.h @@ -94,8 +94,6 @@ class EditServerDialog final : public Window, void keyPressed(gcn::KeyEvent &keyEvent) override; - void logic() override; - private: TextField *mServerAddressField; TextField *mPortField; -- cgit v1.2.3-70-g09d2