Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Clean up the debugging output for the mounttray

  • Loading branch information...
commit af472724d6f80b15e806f46e59aed7b2dbfc2c8b 1 parent 362a0b6
Ken Moore beanpole135 authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 src-qt4/pc-mounttray/mountTray.cpp
8 src-qt4/pc-mounttray/mountTray.cpp
@@ -192,14 +192,14 @@ void MountTray::slotDevChanges(bool showPopup){
192 192 //Get the current list of devices
193 193 QStringList nsd = DCheck->devChildren("");
194 194 //Remove all the currently managed devices
195   - qDebug() << "Current Device List:" << nsd;
  195 + qDebug() << "Rescanning Device List:" << nsd;
196 196 for(int i=0; i<deviceList.length(); i++){
197 197 QString dev = deviceList[i]->device.section("/",-1);
198   - qDebug() << " - Check device:" << dev;
  198 + if(DEBUG_MODE){ qDebug() << " - Check device:" << dev; }
199 199 int ni = nsd.indexOf(dev);
200 200 if(ni == -1){
201 201 //Device Removed
202   - qDebug() << " - Device no longer connected";
  202 + if(DEBUG_MODE){ qDebug() << " - Device no longer connected:" << dev; }
203 203 removeDevice(dev);
204 204 i--;
205 205 }else{
@@ -207,7 +207,7 @@ void MountTray::slotDevChanges(bool showPopup){
207 207 if( !deviceList[i]->isMounted() ){
208 208 QString ja, jb, jc, jd; //junk variables
209 209 if( !DCheck->devInfo(dev,&ja,&jb,&jc,&jd) ){
210   - qDebug() << " - Device no longer valid";
  210 + if(DBUG_MODE){ qDebug() << " - Device no longer valid:" << dev; }
211 211 //no longer valid device
212 212 removeDevice(dev);
213 213 i--;

0 comments on commit af47272

Please sign in to comment.
Something went wrong with that request. Please try again.