Skip to content

Instantly share code, notes, and snippets.

View zeule's full-sized avatar

Eugene Shalygin zeule

View GitHub Profile
@zeule
zeule / qBittorrent.fonttheme
Last active December 10, 2017 17:46
qBittorrent default themes
[Info]
Name=Default
Description=Default qBittorrent font theme.
[Fonts]
TransferList=QFont:
TorrentProperties=QFont:
ExecutionLog=QFont:
@zeule
zeule / qbt-tristatebool-constexpr.diff
Created May 6, 2017 23:51
constexpr TriStateBool
diff --git a/src/app/application.cpp b/src/app/application.cpp
index eedc9e170..9b2204fdc 100644
--- a/src/app/application.cpp
+++ b/src/app/application.cpp
@@ -416,7 +416,7 @@ void Application::processParams(const QStringList &params)
}
if (param.startsWith(QLatin1String("@addPaused="))) {
- torrentParams.addPaused = param.mid(11).toInt() ? TriStateBool::True : TriStateBool::False;
+ torrentParams.addPaused = param.mid(11).toInt() ? TriStateBool::True() : TriStateBool::False();