aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/column_editor_frame.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-09-17 18:52:10 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2017-09-18 07:10:28 +0000
commitecb6c88c073798635b55195c2e2dd7e9cff60b20 (patch)
treee5843ef44c978707d5dec22b61abc0b04ad9b60f /ui/qt/column_editor_frame.h
parent40f737dabea1a973fc969cc1d6950c1ad2ff1ec3 (diff)
Qt: Improved ColumnEditorFrame validation checks
Use common validation checks for fieldsNameLineEdit and occurrenceLineEdit. No need to check for COL_CUSTOM and empty occurrence because this will give a valid value anyway. Change-Id: I8981a15954e9a55a9a43e4a5760b34d83aa2e1ca Reviewed-on: https://code.wireshark.org/review/23584 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/column_editor_frame.h')
-rw-r--r--ui/qt/column_editor_frame.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/column_editor_frame.h b/ui/qt/column_editor_frame.h
index 7ee6023a5d..1832cccbe7 100644
--- a/ui/qt/column_editor_frame.h
+++ b/ui/qt/column_editor_frame.h
@@ -48,6 +48,7 @@ private slots:
void on_buttonBox_accepted();
private:
+ bool syntaxIsValid(void);
Ui::ColumnEditorFrame *ui;
int cur_column_;
QString saved_fields_;