- if (img.height() > height() || img.width() > width())
- img = img.scaled(width(), height(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
+ connect(Client::coreConnection(), &CoreConnection::stateChanged, this, &MainPage::coreConnectionStateChanged);
+ connect(_connectButton, &QAbstractButton::clicked, this, &MainPage::showCoreConnectionDlg);
+ layout->addWidget(_connectButton);
+ }
+}