diff --git a/src/gui/tandem_run_dialog/tandemrundialog.cpp b/src/gui/tandem_run_dialog/tandemrundialog.cpp index a1462798e4a451b47201a8700e544e78f784961d..0f0153757ca1412141d225d9065d856bae1a9f4d 100644 --- a/src/gui/tandem_run_dialog/tandemrundialog.cpp +++ b/src/gui/tandem_run_dialog/tandemrundialog.cpp @@ -45,7 +45,7 @@ TandemRunDialog::TandemRunDialog(QWidget *parent) : QDialog(parent), ui(new Ui::TandemRunDialog) { - qDebug() << "TandemRunDialog::TandemRunDialog begin"; + qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__; ui->setupUi(this); this->setModal(true); _p_fasta_file_list = new QStringListModel(); @@ -178,13 +178,13 @@ TandemRunDialog::fillPresetComboBox() void TandemRunDialog::reset() { + qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__; QSettings settings; QString default_output_location = settings.value("path/identificationfiles", "").toString(); ui->output_directory_label->setText(default_output_location); - QString tandem_bin_path = - settings.value("path/tandem_bin", "/usr/bin/tandem").toString(); + QString tandem_bin_path = settings.value("path/tandem_bin", "").toString(); fillTandemBinPath(tandem_bin_path, false); _p_fasta_file_list->stringList().clear(); @@ -194,6 +194,7 @@ TandemRunDialog::reset() settings.setValue("path/identificationfiles", QFileInfo(filenames[0]).absolutePath()); }*/ + qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__; } void @@ -466,14 +467,21 @@ void TandemRunDialog::fillTandemBinPath(const QString &tandem_bin_path_in, bool popup_firefox) { + qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__ << " " + << tandem_bin_path_in; QSettings settings; if(tandem_bin_path_in.isEmpty()) { // try to find default X!Tandem, depending on platform + ui->tandem_bin_label->setText("Please select the tandem.exe file path"); if(QFileInfo("/usr/bin/tandem").exists()) { fillTandemBinPath("/usr/bin/tandem", false); } + else + { + ui->exe_groupbox->setChecked(true); + } } else { @@ -512,6 +520,7 @@ TandemRunDialog::fillTandemBinPath(const QString &tandem_bin_path_in, tr("%1 is not executable.").arg(tandem_bin_path)); } } + qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__; }