From 61271ff28247f083773147576a923efed4e85260 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Thu, 8 Dec 2016 22:28:02 +0300 Subject: [PATCH] Amend last commit --- profiler_gui/main_window.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/profiler_gui/main_window.cpp b/profiler_gui/main_window.cpp index 6659222..f854e7c 100644 --- a/profiler_gui/main_window.cpp +++ b/profiler_gui/main_window.cpp @@ -1358,6 +1358,14 @@ void EasyMainWindow::onConnectClicked(bool) if (parts.size() != 4) { QMessageBox::warning(this, "Warning", "Invalid IP-Address", QMessageBox::Close); + + if (EASY_GLOBALS.connected) + { + // Restore last values + m_ipEdit->setText(m_lastAddress); + m_portEdit->setText(QString::number(m_lastPort)); + } + return; }