X-Git-Url: http://git.maemo.org/git/?p=jenirok;a=blobdiff_plain;f=src%2Fgui%2Fresultwindow.cpp;h=adbd404e2c42e1e79e338d94b7e24f49636d5806;hp=5d04f03fb6c840761fd00c399a74abcc6771d583;hb=311f8d8c00ac52bcb59c1f3aa8523f905584f1bf;hpb=233c098702e04ca9eae7e06f2ec229f6656df26e diff --git a/src/gui/resultwindow.cpp b/src/gui/resultwindow.cpp index 5d04f03..adbd404 100644 --- a/src/gui/resultwindow.cpp +++ b/src/gui/resultwindow.cpp @@ -90,21 +90,6 @@ void ResultWindow::search(SearchDialog::SearchDetails& details) config->apply(source_); delete config; - Source::SearchType type; - - switch(details.type) - { - case 0: - type = Source::PERSONS; - break; - case 1: - type = Source::YELLOW_PAGES; - break; - default: - qDebug() << "Unknown search type: " << details.type; - return; - } - show(); setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true); @@ -116,7 +101,7 @@ void ResultWindow::search(SearchDialog::SearchDetails& details) connectionManager_->connect(); source_->abort(); - source_->search(Source::SearchDetails(details.name, details.location, type)); + source_->search(Source::SearchDetails(details.name, details.location, details.type)); }