From 6ca93dfbae5e0ec388b92734ca526e197630ce32 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 9 Dec 2007 15:52:00 +0000 Subject: [PATCH] - Fixed a compilation warning --- src/GUI.cpp | 2 +- src/GUI.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index a9969a1ed..f02df6ecf 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -395,7 +395,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 3040cc9c8..ca7c8b4cc 100644 --- a/src/GUI.h +++ b/src/GUI.h @@ -155,7 +155,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; };