mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 04:38:04 -06:00
Drop support of Qt 5
Also remove usage of some deprecated stuff. PR #19338.
This commit is contained in:
committed by
GitHub
parent
5e610cfdcf
commit
dbe79484d2
@@ -212,11 +212,7 @@ bool SettingsStorage::writeNativeSettings() const
|
||||
void SettingsStorage::removeValue(const QString &key)
|
||||
{
|
||||
const QWriteLocker locker(&m_lock);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
if (m_data.remove(key))
|
||||
#else
|
||||
if (m_data.remove(key) > 0)
|
||||
#endif
|
||||
{
|
||||
m_dirty = true;
|
||||
m_timer.start();
|
||||
|
||||
Reference in New Issue
Block a user