Backed out changeset: 159f9e7014f8
This commit is contained in:
@@ -45,7 +45,7 @@ bool ExtProgAction::Execute(std::vector<Glib::ustring> fileNames) {
|
||||
if (fileNames.empty()) return false;
|
||||
|
||||
// Check if they all exists (maybe not precessed yet)
|
||||
for (size_t i=0;i<fileNames.size();i++) {
|
||||
for (int i=0;i<fileNames.size();i++) {
|
||||
if (!safe_file_test(fileNames[i], Glib::FILE_TEST_EXISTS)) {
|
||||
Gtk::MessageDialog msgd (M("MAIN_MSG_IMAGEUNPROCESSED"), true, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
|
||||
msgd.run ();
|
||||
@@ -54,9 +54,9 @@ bool ExtProgAction::Execute(std::vector<Glib::ustring> fileNames) {
|
||||
}
|
||||
|
||||
Glib::ustring cmdLine="\"" + filePathEXE + "\"";
|
||||
if (!preparams.empty()) cmdLine += " " + preparams;
|
||||
if (preparams.length()>0) cmdLine += " " + preparams;
|
||||
|
||||
for (size_t i=0;i<fileNames.size();i++) cmdLine += " \"" + fileNames[i] + "\"";
|
||||
for (int i=0;i<fileNames.size();i++) cmdLine += " \"" + fileNames[i] + "\"";
|
||||
|
||||
return safe_spawn_command_line_async (cmdLine);
|
||||
}
|
||||
@@ -79,7 +79,7 @@ ExtProgStore* ExtProgStore::getInstance()
|
||||
}
|
||||
|
||||
ExtProgStore::~ExtProgStore() {
|
||||
for (list<ExtProgAction*>::const_iterator it=lActions.begin();it!=lActions.end();++it) delete *it;
|
||||
for (list<ExtProgAction*>::iterator it=lActions.begin();it!=lActions.end();it++) delete *it;
|
||||
}
|
||||
|
||||
// Reads all profiles from the given profiles dir
|
||||
@@ -157,7 +157,7 @@ bool ExtProgStore::SearchProg(Glib::ustring name, Glib::ustring exePath, Glib::u
|
||||
}
|
||||
}
|
||||
|
||||
if (!(pAct->filePathEXE.empty())){
|
||||
if (pAct->filePathEXE.length()>0){
|
||||
lActions.push_back(pAct);
|
||||
|
||||
// Copy for second target
|
||||
|
Reference in New Issue
Block a user