[PC-BSD Commits] r17904 - pcbsd/current/src-qt4/EasyPBI

svn at pcbsd.org svn at pcbsd.org
Tue Jul 24 09:44:13 PDT 2012


Author: kenmoore
Date: 2012-07-24 16:44:13 +0000 (Tue, 24 Jul 2012)
New Revision: 17904

Modified:
   pcbsd/current/src-qt4/EasyPBI/mainwindow.cpp
   pcbsd/current/src-qt4/EasyPBI/modBuild.cpp
Log:
Fix a bug causing EasyPBI to crash when the external-links file entries are seperated by tabs rather than spaces.



Modified: pcbsd/current/src-qt4/EasyPBI/mainwindow.cpp
===================================================================
--- pcbsd/current/src-qt4/EasyPBI/mainwindow.cpp	2012-07-24 16:33:47 UTC (rev 17903)
+++ pcbsd/current/src-qt4/EasyPBI/mainwindow.cpp	2012-07-24 16:44:13 UTC (rev 17904)
@@ -577,7 +577,7 @@
     editRefreshResources();
   }else if(index == 2){ //Desktop/menu entries tab
     editRefreshEntries();
-  }else if(index ==3){
+  }else if(index ==3){  //External links tab
     editRefreshLinks();
   }
 }

Modified: pcbsd/current/src-qt4/EasyPBI/modBuild.cpp
===================================================================
--- pcbsd/current/src-qt4/EasyPBI/modBuild.cpp	2012-07-24 16:33:47 UTC (rev 17903)
+++ pcbsd/current/src-qt4/EasyPBI/modBuild.cpp	2012-07-24 16:44:13 UTC (rev 17904)
@@ -121,7 +121,6 @@
   if(serverStruct[2].isEmpty()){serverStruct[2] = "00";}
   if(serverStruct[3].isEmpty()){serverStruct[3] = "NO";}
   //Other structures can have empty strings
-
   return TRUE;
 }
 
@@ -616,6 +615,7 @@
     linksStruct << "" << "" << "";
     while(!in.atEnd()){
       QString line = in.readLine();
+      line.replace("\t"," ");
       if(!line.startsWith("#")){
         original = line.section(" ",0,0,QString::SectionSkipEmpty);
         linkto =  line.section(" ",1,1,QString::SectionSkipEmpty);



More information about the Commits mailing list