[PC-BSD Commits] r15779 - pcbsd-projects/EasyPBI

svn at pcbsd.org svn at pcbsd.org
Mon Mar 12 08:17:05 PDT 2012


Author: kenmoore
Date: 2012-03-12 15:17:04 +0000 (Mon, 12 Mar 2012)
New Revision: 15779

Modified:
   pcbsd-projects/EasyPBI/mainwindow.cpp
Log:
Fix a couple random seg faults that can happen if there are errors detecting a port's binaries



Modified: pcbsd-projects/EasyPBI/mainwindow.cpp
===================================================================
--- pcbsd-projects/EasyPBI/mainwindow.cpp	2012-03-12 15:14:36 UTC (rev 15778)
+++ pcbsd-projects/EasyPBI/mainwindow.cpp	2012-03-12 15:17:04 UTC (rev 15779)
@@ -235,8 +235,7 @@
         QStringList binaries, linkOpts;
         ModBuild::makeExternalLinks(newModulePath,binaries,linkOpts); //should work since pbi.conf was created successfully
         //Add desktop/menu entries 
-        if(ui->gui_app->isChecked()){
-          Get_Main_Exe_Smart(pbi_data);
+        if(ui->gui_app->isChecked() && Get_Main_Exe_Smart(pbi_data)){
           QString mainexe = ModBuild::getFilenameFromPath(pbi_data->main_exe);
           ModBuild::makeMenuEntry( newModulePath, mainexe, ModBuild::readValue("PBI_PROGNAME"),ModBuild::readValue("PBI_PROGICON"), ui->port_category->text() );
           ModBuild::makeDesktopEntry( newModulePath, mainexe, ModBuild::readValue("PBI_PROGNAME"),ModBuild::readValue("PBI_PROGICON") );



More information about the Commits mailing list