diff --git a/src/ui/DebugConsole.cc b/src/ui/DebugConsole.cc
index 6da73bfcaae2b31232c5dbb305537fd78d9e1954..f5af15c5f4a2b250b798883d1a3680b81dfd4f53 100644
--- a/src/ui/DebugConsole.cc
+++ b/src/ui/DebugConsole.cc
@@ -454,18 +454,10 @@ void DebugConsole::handleConnectButton()
if (currLink->isConnected())
{
currLink->disconnect();
- m_ui->connectButton->setText(tr("Connect"));
}
else
{
- if (currLink->connect())
- {
- m_ui->connectButton->setText(tr("Disconn."));
- }
- else
- {
- m_ui->receiveText->appendHtml(QString("%2").arg(QGC::colorRed.name(), tr("Could not connect link %1 ! Please check link hardware.").arg(currLink->getName())));
- }
+ currLink->connect();
}
}
}
diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc
index 3fba2a607ac03a6144ea30c0ef49b6ad49f3be5b..7844374f28b6d836bae7fa7e9236c58a75da9cc0 100644
--- a/src/ui/MainWindow.cc
+++ b/src/ui/MainWindow.cc
@@ -745,6 +745,7 @@ void MainWindow::connectSlugsWidgets()
void MainWindow::arrangeCommonCenterStack()
{
centerStack = new QStackedWidget(this);
+ centerStack->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
if (!centerStack) return;
diff --git a/src/ui/MainWindow.ui b/src/ui/MainWindow.ui
index 5eafe8d01109c4f0a2f2689fdebb5fb18296f657..285640565f732a0be70aadf02632ec65e7d95955 100644
--- a/src/ui/MainWindow.ui
+++ b/src/ui/MainWindow.ui
@@ -38,7 +38,7 @@
0
0
1000
- 22
+ 25