forked from osmocom/wireshark
Fix startup warning when launch Wireshark Qt
QObject::connect: No such signal WiresharkApplication::openCaptureFile(QString&,QString&,unsigned int) in main.cpp:502 QObject::connect: (receiver name: 'MainWindow') Change-Id: I0d6283c1b55619fa6878161d0a74db1ec9107bf2 Reviewed-on: https://code.wireshark.org/review/529 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
eef0fa64d2
commit
bf3f4713b9
|
@ -499,12 +499,13 @@ void WiresharkApplication::setLastOpenDir(const char *dir_name)
|
|||
|
||||
bool WiresharkApplication::event(QEvent *event)
|
||||
{
|
||||
QString display_filter = NULL;
|
||||
if (event->type() == QEvent::FileOpen) {
|
||||
QFileOpenEvent *foe = static_cast<QFileOpenEvent *>(event);
|
||||
if (foe && foe->file().length() > 0) {
|
||||
QString cf_path(foe->file());
|
||||
if (initialized_) {
|
||||
emit openCaptureFile(cf_path);
|
||||
emit openCaptureFile(cf_path, display_filter, WTAP_TYPE_AUTO);
|
||||
} else {
|
||||
pending_open_files_.append(cf_path);
|
||||
}
|
||||
|
@ -621,11 +622,12 @@ void WiresharkApplication::emitAppSignal(AppSignal signal)
|
|||
}
|
||||
|
||||
void WiresharkApplication::allSystemsGo()
|
||||
{
|
||||
{
|
||||
QString display_filter = NULL;
|
||||
initialized_ = true;
|
||||
emit appInitialized();
|
||||
while (pending_open_files_.length() > 0) {
|
||||
emit openCaptureFile(pending_open_files_.front());
|
||||
emit openCaptureFile(pending_open_files_.front(), display_filter, WTAP_TYPE_AUTO);
|
||||
pending_open_files_.pop_front();
|
||||
}
|
||||
software_update_init();
|
||||
|
|
|
@ -100,7 +100,7 @@ protected:
|
|||
|
||||
signals:
|
||||
void appInitialized();
|
||||
void openCaptureFile(QString &cf_path);
|
||||
void openCaptureFile(QString &cf_path, QString &display_filter, unsigned int type);
|
||||
void recentFilesRead();
|
||||
void updateRecentItemStatus(const QString &filename, qint64 size, bool accessible);
|
||||
void splashUpdate(register_action_e action, const char *message);
|
||||
|
|
Loading…
Reference in New Issue