Browse Source

- Fixed compilation warning

adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
3af23ae8a9
  1. 2
      src/GUI.cpp
  2. 2
      src/GUI.h

2
src/GUI.cpp

@ -442,7 +442,7 @@ void GUI::previewFile(QString filePath) { @@ -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();

2
src/GUI.h

@ -158,7 +158,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{ @@ -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;
};

Loading…
Cancel
Save