summaryrefslogtreecommitdiff
path: root/ui/qt/uat_dialog.cpp
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-11-12 23:53:55 +0100
committerMichael Mann <mmann78@netscape.net>2015-11-13 00:09:14 +0000
commit9fe7102b3a1bc72ac9921019938be71312b26b78 (patch)
treec1eb73ac375381fc595388d3f1d5143de5591ed0 /ui/qt/uat_dialog.cpp
parent7775b4898780299652ceab10d8022d9df683c723 (diff)
downloadwireshark-9fe7102b3a1bc72ac9921019938be71312b26b78.tar.gz
Qt: fix UI artifacts seen in UAT window on Linux or OSX
The QLabel::clear() method call does not seem to repaint the area on those platforms. Let's force an update of the widget. Bug: 11695 Change-Id: I9c708c8537140b26582e4365ceee3271eac23259 Reviewed-on: https://code.wireshark.org/review/11782 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/uat_dialog.cpp')
-rw-r--r--ui/qt/uat_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/uat_dialog.cpp b/ui/qt/uat_dialog.cpp
index 141e20bfac..157635d50a 100644
--- a/ui/qt/uat_dialog.cpp
+++ b/ui/qt/uat_dialog.cpp
@@ -387,6 +387,7 @@ void UatDialog::enumPrefCurrentIndexChanged(int index)
ok_button_->setEnabled(true);
uat_update_record(uat_, rec, TRUE);
}
+ this->update();
uat_->changed = TRUE;
}
@@ -440,6 +441,7 @@ void UatDialog::stringPrefTextChanged(const QString &text)
uat_update_record(uat_, rec, TRUE);
}
}
+ this->update();
ok_button_->setEnabled(enable_ok);
cur_line_edit_->setSyntaxState(ss);
@@ -465,6 +467,7 @@ void UatDialog::stringPrefEditingFinished()
} else {
ui->hintLabel->clear();
}
+ this->update();
}
updateItem(*item);