diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2018-02-07 17:20:16 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2018-02-08 14:35:28 -0500 |
commit | f26866b9caf9ff27d129c703f51b8c2922000243 (patch) | |
tree | 85efd77129f0759c6649417f1f23c1a88354d492 /src/qt/optionsmodel.cpp | |
parent | 0277173b1defb63216d40a8d8805ae6d5d563c26 (diff) |
boost: drop boost threads for upnp
Diffstat (limited to 'src/qt/optionsmodel.cpp')
-rw-r--r-- | src/qt/optionsmodel.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index 4ade88d843..909be1c264 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -315,7 +315,12 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in break; case MapPortUPnP: // core option - can be changed on-the-fly settings.setValue("fUseUPnP", value.toBool()); - MapPort(value.toBool()); + if (value.toBool()) { + StartMapPort(); + } else { + InterruptMapPort(); + StopMapPort(); + } break; case MinimizeOnClose: fMinimizeOnClose = value.toBool(); |