- Made search engine use libnotify instead of qt notification when available. Note that a notification is displayed when a search request has finished and the search tab is not currently displayed (other tab is displayed or window is minimized/iconified)

This commit is contained in:
Christophe Dumez 2009-11-25 22:03:05 +00:00
parent 507b9b149e
commit 17f712e3e0
3 changed files with 10 additions and 11 deletions

View file

@ -144,7 +144,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
connect(actionDecreasePriority, SIGNAL(triggered()), transferList, SLOT(decreasePrioSelectedTorrents()));
// Search engine tab
searchEngine = new SearchEngine(BTSession, systrayIcon);
searchEngine = new SearchEngine(this, BTSession);
tabs->addTab(searchEngine, QIcon(QString::fromUtf8(":/Icons/oxygen/edit-find.png")), tr("Search"));
// Configure BT session according to options
@ -429,7 +429,7 @@ void GUI::previewFile(QString filePath) {
QDesktopServices::openUrl(QString("file://")+filePath);
}
int GUI::getCurrentTabIndex() const{
int GUI::getCurrentTabIndex() const {
if(isMinimized() || !isVisible())
return -1;
return tabs->currentIndex();