pd_ui_->filterExpressonsFrame->acceptChanges();
pd_ui_->expertFrame->acceptChanges();
+ //Filter expressions don't affect dissection, so there is no need to
+ //send any events to that effect. However, the app needs to know
+ //about any button changes.
+ wsApp->emitAppSignal(WiresharkApplication::FilterExpressionsChanged);
+
prefs_main_write();
if (save_decode_as_entries(&err) < 0)
{
setWindowTitle(title);
}
+void UatFrame::applyChanges()
+{
+ if (!uat_) return;
+
+ if (uat_->flags & UAT_AFFECTS_FIELDS) {
+ /* Recreate list with new fields and redissect packets */
+ wsApp->queueAppSignal(WiresharkApplication::FieldsChanged);
+ }
+ if (uat_->flags & UAT_AFFECTS_DISSECTION) {
+ /* Just redissect packets if we have any */
+ wsApp->queueAppSignal(WiresharkApplication::PacketDissectionChanged);
+ }
+}
+
void UatFrame::acceptChanges()
{
if (!uat_) return;
uat_->post_update_cb();
}
- //Filter expressions don't affect dissection, so there is no need to
- //send any events to that effect. However, the app needs to know
- //about any button changes.
- wsApp->emitAppSignal(WiresharkApplication::FilterExpressionsChanged);
+ applyChanges();
}
}
void checkForErrorHint(const QModelIndex ¤t, const QModelIndex &previous);
bool trySetErrorHintFromField(const QModelIndex &index);
void addRecord(bool copy_from_current = false);
+ void applyChanges();
private slots:
void modelDataChanged(const QModelIndex &topLeft);