hwmanager: Do not open a popup window when clicking on a notification,

if automatic opening of popup windows is enabled.
pull/311/head
Slávek Banko 1 year ago
parent d88a72a5bc
commit 68c1810b9e
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -699,6 +699,13 @@ void HwDeviceSystemTray::deviceChanged(TDEGenericDevice* device)
void HwDeviceSystemTray::devicePopupClicked(KPassivePopup* popup, TQPoint point, TQString uuid) {
TDEGenericDevice *hwdevice;
if (uuid.startsWith("ADD: ")) {
TDEConfig config("mediamanagerrc");
config.setGroup("Global");
if (config.readBoolEntry("NotificationPopupsEnabled", true))
{
return;
}
uuid = uuid.right(uuid.length() - strlen("ADD: "));
if (uuid != "") {
TDEHardwareDevices *hwdevices = TDEGlobal::hardwareDevices();

Loading…
Cancel
Save