mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-29 03:38:05 -06:00
Use libtorrent version.hpp instead of our own DEFINE
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include <QDesktopWidget>
|
||||
#include <QStyleFactory>
|
||||
|
||||
#include <libtorrent/version.hpp>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -283,7 +284,7 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
||||
}
|
||||
// Tab selection mecanism
|
||||
connect(tabSelection, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*)));
|
||||
#ifndef LIBTORRENT_0_15
|
||||
#if LIBTORRENT_VERSION_MINOR < 15
|
||||
checkAppendqB->setVisible(false);
|
||||
#endif
|
||||
// Load Advanced settings
|
||||
@@ -403,7 +404,7 @@ void options_imp::saveOptions(){
|
||||
#endif
|
||||
settings.setValue(QString::fromUtf8("TempPath"), temp_path);
|
||||
settings.setValue(QString::fromUtf8("AppendLabel"), checkAppendLabel->isChecked());
|
||||
#ifdef LIBTORRENT_0_15
|
||||
#if LIBTORRENT_VERSION_MINOR > 14
|
||||
settings.setValue(QString::fromUtf8("UseIncompleteExtension"), checkAppendqB->isChecked());
|
||||
#endif
|
||||
settings.setValue(QString::fromUtf8("PreAllocation"), preAllocateAllFiles());
|
||||
@@ -644,7 +645,7 @@ void options_imp::loadOptions(){
|
||||
#endif
|
||||
textTempPath->setText(temp_path);
|
||||
checkAppendLabel->setChecked(Preferences::appendTorrentLabel());
|
||||
#ifdef LIBTORRENT_0_15
|
||||
#if LIBTORRENT_VERSION_MINOR > 14
|
||||
checkAppendqB->setChecked(Preferences::useIncompleteFilesExtension());
|
||||
#endif
|
||||
checkPreallocateAll->setChecked(Preferences::preAllocateAllFiles());
|
||||
|
||||
Reference in New Issue
Block a user