- Fixed a compilation warning

This commit is contained in:
Christophe Dumez
2007-12-09 15:52:00 +00:00
parent f175ce5249
commit 6ca93dfbae
2 changed files with 2 additions and 2 deletions

View File

@@ -395,7 +395,7 @@ void GUI::previewFile(QString filePath) {
QDesktopServices::openUrl(QString("file://")+filePath); QDesktopServices::openUrl(QString("file://")+filePath);
} }
unsigned int GUI::getCurrentTabIndex() const{ int GUI::getCurrentTabIndex() const{
if(isMinimized() || isHidden()) if(isMinimized() || isHidden())
return -1; return -1;
return tabs->currentIndex(); return tabs->currentIndex();

View File

@@ -155,7 +155,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
GUI(QWidget *parent=0, QStringList torrentCmdLine=QStringList()); GUI(QWidget *parent=0, QStringList torrentCmdLine=QStringList());
~GUI(); ~GUI();
// Methods // Methods
unsigned int getCurrentTabIndex() const; int getCurrentTabIndex() const;
QPoint screenCenter() const; QPoint screenCenter() const;
}; };