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

List:       kde-commits
Subject:    KDE/kdelibs/kio/kfile
From:       Martin Koller <m.koller () surfeu ! at>
Date:       2007-02-25 18:36:33
Message-ID: 1172428593.719539.12932.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 637193 by mkoller:

Forwardport for fix to bug 103741

"refresh" also updates the disk free information


 M  +17 -0     kpropertiesdialog.cpp  


--- trunk/KDE/kdelibs/kio/kfile/kpropertiesdialog.cpp #637192:637193
@@ -658,6 +658,7 @@
     dirSizeJob = 0L;
     dirSizeUpdateTimer = 0L;
     m_lined = 0;
+    m_freeSpaceLabel = 0;
   }
   ~KFilePropsPluginPrivate()
   {
@@ -1228,6 +1229,22 @@
            SLOT( slotDirSizeFinished( KJob * ) ) );
   m_sizeStopButton->setEnabled(true);
   m_sizeDetermineButton->setEnabled(false);
+
+  // also update the "Free disk space" display
+  if ( d->m_freeSpaceLabel )
+  {
+    bool isLocal;
+    KFileItem * item = properties->item();
+    KUrl url = item->mostLocalUrl( isLocal );
+    QString mountPoint = KIO::findPathMountPoint( url.path() );
+
+    KDiskFreeSp * job = new KDiskFreeSp;
+    connect( job, SIGNAL( foundMountPoint( const unsigned long&, const unsigned long&,
+             const unsigned long&, const QString& ) ),
+             this, SLOT( slotFoundMountPoint( const unsigned long&, const unsigned long&,
+          const unsigned long&, const QString& ) ) );
+    job->readDF( mountPoint );
+  }
 }
 
 void KFilePropsPlugin::slotSizeStop()
[prev in list] [next in list] [prev in thread] [next in thread] 

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