Browse Source

Fix a typo in TorrentFileGuard

adaptive-webui-19844
Eugene Shalygin 9 years ago
parent
commit
47a3f1d93d
  1. 2
      src/base/torrentfileguard.cpp
  2. 2
      src/base/torrentfileguard.h
  3. 2
      src/gui/options_imp.cpp

2
src/base/torrentfileguard.cpp

@ -84,7 +84,7 @@ TorrentFileGuard::AutoDeleteMode TorrentFileGuard::autoDeleteMode()
KEY_AUTO_DELETE_ENABLED, meta.valueToKey(Never)).toByteArray())); KEY_AUTO_DELETE_ENABLED, meta.valueToKey(Never)).toByteArray()));
} }
void TorrentFileGuard::setautoDeleteMode(TorrentFileGuard::AutoDeleteMode mode) void TorrentFileGuard::setAutoDeleteMode(TorrentFileGuard::AutoDeleteMode mode)
{ {
QMetaEnum meta {modeMetaEnum()}; QMetaEnum meta {modeMetaEnum()};
SettingsStorage::instance()->storeValue(KEY_AUTO_DELETE_ENABLED, meta.valueToKey(mode)); SettingsStorage::instance()->storeValue(KEY_AUTO_DELETE_ENABLED, meta.valueToKey(mode));

2
src/base/torrentfileguard.h

@ -68,7 +68,7 @@ public:
// static interface to get/set preferences // static interface to get/set preferences
static AutoDeleteMode autoDeleteMode(); static AutoDeleteMode autoDeleteMode();
static void setautoDeleteMode(AutoDeleteMode mode); static void setAutoDeleteMode(AutoDeleteMode mode);
private: private:
static QMetaEnum modeMetaEnum(); static QMetaEnum modeMetaEnum();

2
src/gui/options_imp.cpp

@ -519,7 +519,7 @@ void options_imp::saveOptions()
pref->setAutoRunProgram(autoRun_txt->text().trimmed()); pref->setAutoRunProgram(autoRun_txt->text().trimmed());
pref->setActionOnDblClOnTorrentDl(getActionOnDblClOnTorrentDl()); pref->setActionOnDblClOnTorrentDl(getActionOnDblClOnTorrentDl());
pref->setActionOnDblClOnTorrentFn(getActionOnDblClOnTorrentFn()); pref->setActionOnDblClOnTorrentFn(getActionOnDblClOnTorrentFn());
TorrentFileGuard::setautoDeleteMode(!deleteTorrentBox->isChecked() ? TorrentFileGuard::Never TorrentFileGuard::setAutoDeleteMode(!deleteTorrentBox->isChecked() ? TorrentFileGuard::Never
: !deleteCancelledTorrentBox->isChecked() ? TorrentFileGuard::IfAdded : !deleteCancelledTorrentBox->isChecked() ? TorrentFileGuard::IfAdded
: TorrentFileGuard::Always); : TorrentFileGuard::Always);
// End Downloads preferences // End Downloads preferences

Loading…
Cancel
Save