From 69f6a3135b8f778e79a37ec8451b0349c7adec8d Mon Sep 17 00:00:00 2001 From: arcan1s Date: Sat, 20 Jun 2015 15:20:01 +0300 Subject: [PATCH] derop notification on status changing since it causes plasmacrash --- sources/plasmoid-kf5/plugin/netctladds.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sources/plasmoid-kf5/plugin/netctladds.cpp b/sources/plasmoid-kf5/plugin/netctladds.cpp index d55a158..4e68bd4 100644 --- a/sources/plasmoid-kf5/plugin/netctladds.cpp +++ b/sources/plasmoid-kf5/plugin/netctladds.cpp @@ -158,12 +158,12 @@ void NetctlAdds::setDataBySource(const QString sourceName, const QVariantMap dat bool needUpdate = (values[sourceName] != data[QString("value")].toString()); values[sourceName] = data[QString("value")].toString(); - if ((needUpdate) && (sourceName == QString("active"))) { - if (values[sourceName] == QString("true")) - sendNotification(QString("Info"), i18n("Network status has been changed to active")); - else - sendNotification(QString("Info"), i18n("Network status has been changed to inactive")); - } +// if ((needUpdate) && (sourceName == QString("active"))) { +// if (values[sourceName] == QString("true")) +// sendNotification(QString("Info"), i18n("Network status has been changed to active")); +// else +// sendNotification(QString("Info"), i18n("Network status has been changed to inactive")); +// } if (needUpdate) emit(needToBeUpdated()); }