diff options
author | Roland Knall <rknall@gmail.com> | 2019-11-12 14:27:38 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2019-11-12 22:03:23 +0000 |
commit | 3c8c392b9d6001bd5fadca887caf69bdf7ec74ad (patch) | |
tree | 44d84a2d8842d147c45464f62aac92f5fc393fc3 /ui/qt/address_editor_frame.cpp | |
parent | ba62446a6a42e3d94f861ad728dec4b09edf620c (diff) |
Qt: Cleanup push/pop Infos
Currently push pop is propagated by a massive load of signals
which partly are also propagated through parent objects.
This moves the status handling to WiresharkApplication, also
pathlining future moves to move status to different classes or
use additional methods of status information
Change-Id: Ibcb2c98688f1adf40dce1483f336596ef992bb06
Reviewed-on: https://code.wireshark.org/review/35071
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/address_editor_frame.cpp')
-rw-r--r-- | ui/qt/address_editor_frame.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/address_editor_frame.cpp b/ui/qt/address_editor_frame.cpp index befdde0c58..f0aa92403d 100644 --- a/ui/qt/address_editor_frame.cpp +++ b/ui/qt/address_editor_frame.cpp @@ -25,6 +25,7 @@ #include <QKeyEvent> #include <ui/qt/utils/qt_ui_utils.h> +#include <ui/qt/wireshark_application.h> // To do: // - Fill in currently resolved address. @@ -153,7 +154,7 @@ void AddressEditorFrame::on_buttonBox_accepted() QString name = ui->nameLineEdit->text(); if (!cf_add_ip_name_from_string(cap_file_, addr.toUtf8().constData(), name.toUtf8().constData())) { QString error_msg = tr("Can't assign %1 to %2").arg(name).arg(addr); - emit editAddressStatus(error_msg); + wsApp->pushStatus(WiresharkApplication::TemporaryStatus, error_msg); ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false); return; } |