summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIoannis Christoforidis2019-12-04 20:05:52 +0100
committerIoannis Christoforidis2019-12-04 20:05:52 +0100
commit3f6212d52ff7339e5271f770c496cf2cca7ec301 (patch)
tree575bc02011e59c0683a87703c9d3b550256cb2c4
parentadd info box of connection type (diff)
downloadspeedcheck-3f6212d52ff7339e5271f770c496cf2cca7ec301.tar.gz
speedcheck-3f6212d52ff7339e5271f770c496cf2cca7ec301.tar.xz
speedcheck-3f6212d52ff7339e5271f770c496cf2cca7ec301.zip
Fix small bug were Network Speed Label did not get enabled after switching device; also setting conn type to the right value on change
-rw-r--r--src/speedcheck.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/speedcheck.cpp b/src/speedcheck.cpp
index 1ad46c9..8fc34c4 100644
--- a/src/speedcheck.cpp
+++ b/src/speedcheck.cpp
@@ -115,8 +115,9 @@ void SpeedCheck::updateNetworkInfos(int) {
QMessageBox::warning(NULL, "Warning","Link Speed Slow");
_ui->networkSpeed->setStyleSheet("QLabel {color:orange;}");
_ui->networkSpeed->setToolTip("Networkspeed slow!");
- _ui->connType->setText("wired");
}
+ _ui->connType->setText("wired");
+ _ui->networkSpeed->setEnabled(true);
_ui->networkSpeed->setText(speed + " MB/s");
}
else {