summaryrefslogtreecommitdiff
path: root/ui/qt/module_preferences_scroll_area.cpp
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-09-04 21:49:11 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-09-05 12:55:39 +0000
commit90062a32b747223e14adfb3d563ca37082887038 (patch)
treec34bf924acabb7f677286e8415c95397047853ca /ui/qt/module_preferences_scroll_area.cpp
parenta35311d3123e8fe7d43647462ec6f7d80f97fa85 (diff)
downloadwireshark-90062a32b747223e14adfb3d563ca37082887038.tar.gz
Qt: fix applying UINT preferences in base 8 or 16
While we are at it: - fix a crash when clicking on the cancel button from the preference modification context menu - redissect the packet list when modifying a preference from the context menu Bug: 11502 Change-Id: I7269f7093f1f38c46ec7744fd619ab67f31eb4e7 Reviewed-on: https://code.wireshark.org/review/10386 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/qt/module_preferences_scroll_area.cpp')
-rw-r--r--ui/qt/module_preferences_scroll_area.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/module_preferences_scroll_area.cpp b/ui/qt/module_preferences_scroll_area.cpp
index aa84d766f7..4fabd71044 100644
--- a/ui/qt/module_preferences_scroll_area.cpp
+++ b/ui/qt/module_preferences_scroll_area.cpp
@@ -394,7 +394,7 @@ void ModulePreferencesScrollArea::uintLineEditTextEdited(const QString &new_str)
if (!pref) return;
bool ok;
- uint new_uint = new_str.toUInt(&ok);
+ uint new_uint = new_str.toUInt(&ok, 0);
if (ok) {
pref->stashed_val.uint = new_uint;
}