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

svn at pcbsd.org svn at pcbsd.org
Wed Jan 9 11:47:36 PST 2013


Author: kenmoore
Date: 2013-01-09 19:47:36 +0000 (Wed, 09 Jan 2013)
New Revision: 20914

Modified:
   pcbsd/current/src-qt4/EasyPBI/mainGUI.cpp
   pcbsd/current/src-qt4/EasyPBI/mainGUI.h
Log:
Fix a couple last-minute bugs that I found in EasyPBI2 during a final testing run



Modified: pcbsd/current/src-qt4/EasyPBI/mainGUI.cpp
===================================================================
--- pcbsd/current/src-qt4/EasyPBI/mainGUI.cpp	2013-01-09 18:59:43 UTC (rev 20913)
+++ pcbsd/current/src-qt4/EasyPBI/mainGUI.cpp	2013-01-09 19:47:36 UTC (rev 20914)
@@ -505,6 +505,14 @@
   ui->line_makeport->setText(portSel.remove(settings->value("portsdir")+"/"));
 }
 
+void MainGUI::on_push_change_progdir_clicked(){
+  //Prompt for a new directory
+  QString dirSel = QFileDialog::getExistingDirectory(this, tr("Select Package Directory"), QDir::homePath());
+  if(dirSel.isEmpty()){return;} //action cancelled or closed	
+  //Save the port info to the GUI
+  ui->line_progdir->setText(dirSel);
+}
+
 void MainGUI::slotAddMakeOption(QAction* act){
   qDebug() << "Trying to add build option:" << act->text();
   QString opt = act->text();
@@ -1318,7 +1326,7 @@
   PBI_BUILDING_NOW=outdir+":::"+currentModule->readValue("progname");
   //Start the Process
   qDebug() << "Starting the PBI build process...";
-  ui->toolBox->setItemText(1,tr("PBI Builder (Working)"));
+  ui->toolBox->setItemText(0,tr("PBI Builder (Working)"));
   p->start(cmd);
 }
 
@@ -1373,7 +1381,7 @@
   p->close();
   PBI_BUILDING_NOW.clear();
   PBI_BUILD_TERMINATED=FALSE;
-  ui->toolBox->setItemText(1,tr("PBI Builder (Finished)"));
+  ui->toolBox->setItemText(0,tr("PBI Builder (Finished)"));
   delete p;
 }
 

Modified: pcbsd/current/src-qt4/EasyPBI/mainGUI.h
===================================================================
--- pcbsd/current/src-qt4/EasyPBI/mainGUI.h	2013-01-09 18:59:43 UTC (rev 20913)
+++ pcbsd/current/src-qt4/EasyPBI/mainGUI.h	2013-01-09 19:47:36 UTC (rev 20914)
@@ -51,6 +51,7 @@
     void slotModTabChanged(int);
     //pbi.conf functions
     void on_push_change_makeport_clicked();
+    void on_push_change_progdir_clicked();
     void slotAddMakeOption(QAction*);
     void on_push_addportbefore_clicked();
     void on_push_rmportbefore_clicked();



More information about the Commits mailing list