mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Proper fix to use an INI file instead of the registry on Windows
This commit is contained in:
parent
d354d7133e
commit
b9241ad5ad
27 changed files with 311 additions and 313 deletions
|
@ -52,8 +52,7 @@
|
|||
#include "headlessloader.h"
|
||||
#endif
|
||||
|
||||
#include <QSettings>
|
||||
|
||||
#include "qinisettings.h"
|
||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC)
|
||||
#include <signal.h>
|
||||
#include <execinfo.h>
|
||||
|
@ -95,7 +94,7 @@ class LegalNotice: public QObject {
|
|||
|
||||
public:
|
||||
static bool userAgreesWithNotice() {
|
||||
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||
if(settings.value(QString::fromUtf8("LegalNotice/Accepted"), false).toBool()) // Already accepted once
|
||||
return true;
|
||||
#ifdef DISABLE_GUI
|
||||
|
@ -203,7 +202,7 @@ int main(int argc, char *argv[]){
|
|||
}
|
||||
|
||||
QString locale;
|
||||
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||
#ifndef DISABLE_GUI
|
||||
bool no_splash = false;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue