Fix bug#39021 There's no notification when cable network disconnected
This commit is contained in:
parent
4364e118f0
commit
cc51c760b0
|
@ -645,7 +645,6 @@ void MainWindow::iconActivated(QSystemTrayIcon::ActivationReason reason)
|
||||||
switch (reason) {
|
switch (reason) {
|
||||||
case QSystemTrayIcon::Trigger:
|
case QSystemTrayIcon::Trigger:
|
||||||
case QSystemTrayIcon::MiddleClick:
|
case QSystemTrayIcon::MiddleClick:
|
||||||
|
|
||||||
handleIconClicked();
|
handleIconClicked();
|
||||||
|
|
||||||
if (this->isHidden()) {
|
if (this->isHidden()) {
|
||||||
|
@ -991,7 +990,7 @@ void MainWindow::onPhysicalCarrierChanged(bool flag)
|
||||||
} else {
|
} else {
|
||||||
qDebug()<<"拔出了有线网的网线";
|
qDebug()<<"拔出了有线网的网线";
|
||||||
syslog(LOG_DEBUG,"wired physical cable is already plug out");
|
syslog(LOG_DEBUG,"wired physical cable is already plug out");
|
||||||
|
activeLanDisconn();
|
||||||
BackThread *bt = new BackThread();
|
BackThread *bt = new BackThread();
|
||||||
IFace *iface = bt->execGetIface();
|
IFace *iface = bt->execGetIface();
|
||||||
if (iface->lstate != 0) {
|
if (iface->lstate != 0) {
|
||||||
|
@ -2714,7 +2713,6 @@ void MainWindow::activeLanDisconn()
|
||||||
|
|
||||||
QString txt(tr("Wired net is disconnected"));
|
QString txt(tr("Wired net is disconnected"));
|
||||||
objKyDBus->showDesktopNotify(txt);
|
objKyDBus->showDesktopNotify(txt);
|
||||||
|
|
||||||
currSelNetName = "";
|
currSelNetName = "";
|
||||||
oldActLanName = "";
|
oldActLanName = "";
|
||||||
oldDbusActLanDNS = 0;
|
oldDbusActLanDNS = 0;
|
||||||
|
@ -2739,7 +2737,6 @@ void MainWindow::activeWifiDisconn()
|
||||||
void MainWindow::activeStartLoading()
|
void MainWindow::activeStartLoading()
|
||||||
{
|
{
|
||||||
syslog(LOG_DEBUG, "Wi-Fi is disconnected");
|
syslog(LOG_DEBUG, "Wi-Fi is disconnected");
|
||||||
|
|
||||||
QString txt(tr("Wi-Fi is disconnected"));
|
QString txt(tr("Wi-Fi is disconnected"));
|
||||||
objKyDBus->showDesktopNotify(txt);
|
objKyDBus->showDesktopNotify(txt);
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1465,7 +1465,7 @@
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/mainwindow.cpp" line="2359"/>
|
<location filename="../src/mainwindow.cpp" line="2359"/>
|
||||||
<source>Wired net is disconnected</source>
|
<source>Wired net is disconnected</source>
|
||||||
<translation type="unfinished">断开有线网络</translation>
|
<translation type="unfinished">有线网络断开</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/mainwindow.cpp" line="2385"/>
|
<location filename="../src/mainwindow.cpp" line="2385"/>
|
||||||
|
|
Loading…
Reference in New Issue