[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.3/kdebase/workspace/plasma/applets/devicenotifier
From:       Giulio Camuffo <giuliocamuffo () gmail ! com>
Date:       2009-09-25 19:36:46
Message-ID: 1253907406.712110.21114.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1028079 by camuffo:

backport: set unmount true for optical discs

CCBUG: 199652


 M  +7 -2      devicenotifier.cpp  


--- branches/KDE/4.3/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier.cpp \
#1028078:1028079 @@ -188,7 +188,7 @@
                     m_dialog->setDeviceData(source, \
KIcon(m_dialog->getDeviceData(source,NotifierDialog::IconNameRole).toString(), NULL, \
                overlays), Qt::DecorationRole);
                 } else if (data["Device \
Types"].toStringList().contains("OpticalDisc")) {  //Unmounted optical drive
-                    m_dialog->setDeviceData(source, KIcon("media-eject"), \
Qt::DecorationRole); +
                     //set icon to unmounted device
                     m_dialog->setUnMount(true,source);
                     m_dialog->setDeviceData(source, \
KIcon(m_dialog->getDeviceData(source,NotifierDialog::IconNameRole).toString()), \
Qt::DecorationRole); @@ -200,8 +200,13 @@
                 }
             }
             // actions specific for other types of devices will go here
+            if (data["Device Types"].toStringList().contains("Storage Volume")) {
+                if (data["Device Types"].toStringList().contains("OpticalDisc")) {
+                    m_dialog->setUnMount(true, source);
+                }
+            }
         }
-   }
+    }
 }
 
 void DeviceNotifier::notifyDevice(const QString &name)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic