Backed out changeset: 159f9e7014f8

This commit is contained in:
Oliver Duis
2012-05-06 23:04:47 +02:00
parent 1483ecb47c
commit 05226a2875
125 changed files with 747 additions and 750 deletions

View File

@@ -107,7 +107,7 @@ void ProfilePanel::refreshProfileList () {
// re-parse profile directories (deletes old ones)
profileStore.parseProfiles ();
pparams = profileStore.getProfileNames ();
for (size_t i=0; i<pparams.size(); i++)
for (unsigned int i=0; i<pparams.size(); i++)
profiles->append_text (pparams[i]);
if (custom)
@@ -125,7 +125,7 @@ void ProfilePanel::save_clicked (GdkEventButton* event) {
return;
Gtk::FileChooserDialog dialog(M("PROFILEPANEL_SAVEDLGLABEL"), Gtk::FILE_CHOOSER_ACTION_SAVE);
if (!options.loadSaveProfilePath.empty())
if (options.loadSaveProfilePath.length())
dialog.set_current_folder (options.loadSaveProfilePath);
else if (options.multiUser)
dialog.set_current_folder (Options::rtdir + "/" + options.profilePath);
@@ -267,7 +267,7 @@ void ProfilePanel::load_clicked (GdkEventButton* event) {
return;
Gtk::FileChooserDialog dialog(M("PROFILEPANEL_LOADDLGLABEL"), Gtk::FILE_CHOOSER_ACTION_OPEN);
if (!options.loadSaveProfilePath.empty())
if (options.loadSaveProfilePath.length())
dialog.set_current_folder (options.loadSaveProfilePath);
else if (options.multiUser)
dialog.set_current_folder (Options::rtdir + "/" + options.profilePath);
@@ -442,7 +442,7 @@ void ProfilePanel::initProfile (const Glib::ustring& profname, ProcParams* lastS
pparams.clear ();
pparams = profileStore.getProfileNames ();
for (size_t i=0; i<pparams.size(); i++)
for (unsigned int i=0; i<pparams.size(); i++)
profiles->append_text (pparams[i]);
if (custom) {