[PC-BSD Commits] r19641 - pcbsd/current/src-qt4/pc-mounttray

svn at pcbsd.org svn at pcbsd.org
Thu Oct 11 07:31:36 PDT 2012


Author: kenmoore
Date: 2012-10-11 14:31:36 +0000 (Thu, 11 Oct 2012)
New Revision: 19641

Modified:
   pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp
Log:
Commit a fix for detecting windows drives properly again in the new mounttray algorithms



Modified: pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp	2012-10-11 09:19:20 UTC (rev 19640)
+++ pcbsd/current/src-qt4/pc-mounttray/menuItem.cpp	2012-10-11 14:31:36 UTC (rev 19641)
@@ -34,6 +34,8 @@
   frame = new QWidget();
   frame->setLayout(layout);
   this->setDefaultWidget(frame);
+  //QString style = "Border: inset "; 
+  //frame->setStyleSheet(style);
   //Connect the signals/slots
   connect(pushMount,SIGNAL(clicked()), this, SLOT(slotMountClicked()));
   connect(checkAutomount,SIGNAL(toggled(bool)),this,SLOT(slotAutoMountToggled(bool)));
@@ -142,6 +144,9 @@
   }else if( !tmp.filter("number of blocks").isEmpty() ){
     tmp = tmp.filter("number of blocks");
     kb = tmp[0].remove("number of blocks").simplified().toInt();
+  }else if( !tmp.filter("hidden sectors").isEmpty()){
+    tmp = tmp.filter("hidden sectors");
+    kb = tmp[0].remove("hidden sectors").simplified().toInt();
   }else if( !tmp.filter("sectors ").isEmpty()){
     tmp = tmp.filter("sectors ");
     kb = tmp[0].remove("sectors ").section("(",0,0).simplified().toInt();



More information about the Commits mailing list