diff --git a/src/GUI.cpp b/src/GUI.cpp index 8cb46d78e..6faa2ad1f 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -442,7 +442,7 @@ void GUI::previewFile(QString filePath) { QDesktopServices::openUrl(QString("file://")+filePath); } -unsigned int GUI::getCurrentTabIndex() const{ +int GUI::getCurrentTabIndex() const{ if(isMinimized() || isHidden()) return -1; return tabs->currentIndex(); diff --git a/src/GUI.h b/src/GUI.h index 50dbfe7dd..935a44154 100644 --- a/src/GUI.h +++ b/src/GUI.h @@ -158,7 +158,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{ GUI(QWidget *parent=0, QStringList torrentCmdLine=QStringList()); ~GUI(); // Methods - unsigned int getCurrentTabIndex() const; + int getCurrentTabIndex() const; QPoint screenCenter() const; };