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

List:       kde-commits
Subject:    kdelibs/kio/kfile
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2005-01-11 22:41:09
Message-ID: 20050111224109.0917C1CECA () office ! kde ! org
[Download RAW message or body]

CVS commit by aseigo: 

always save the icon if the props page is dirty even if the icon wasn't
changed. this ensures that an icon is written out to new local files.
also check that the widget is a KIconButton since that's what we cast it
to, rather than check that it isn't a QLabel (in case we change that some
day =)
BUG:96483


  M +1 -1      kpropertiesdialog.cpp   1.331


--- kdelibs/kio/kfile/kpropertiesdialog.cpp  #1.330:1.331
@@ -1343,5 +1343,5 @@ void KFilePropsPlugin::applyIconChanges(
   // handle icon changes - only local files for now
   // TODO: Use KTempFile and KIO::file_copy with overwrite = true
-  if (!iconArea->isA("QLabel") && properties->kurl().isLocalFile() && d->bIconChanged) {
+  if (iconArea->isA("KIconButton") && properties->kurl().isLocalFile()) {
     KIconButton *iconButton = (KIconButton *) iconArea;
     QString path;


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

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