#include <QtGui/QDialogButtonBox>
#include <QMaemo5ValueButton>
#include "searchdialog.h"
-#include "source.h"
#include "settings.h"
SearchDialog::SearchDialog(QWidget* parent): QDialog(parent),
}
details.location = locationInput_->text();
- details.type = selector_->value().toInt();
+
+ int type = 0;
+
+ if(selector_->isVisible())
+ {
+ type = selector_->value().toInt();
+ }
+
+ details.type = static_cast<Source::SearchType>(type);
+
emit search(details);
hide();
}