forked from osmocom/wireshark
qt: fix more button states
As in gcc614a9 we have to manually uncheck buttons if we decide not to action them. Change-Id: Ia5dc29a292bc6d75a1e8753da06a053cafa66866 Reviewed-on: https://code.wireshark.org/review/9107 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
cc614a93d8
commit
0d28caf880
|
@ -741,6 +741,7 @@ void MainWindow::startCapture() {
|
|||
if(global_capture_opts.num_selected == 0) {
|
||||
QString msg = QString(tr("No interface selected"));
|
||||
main_ui_->statusBar->pushTemporaryStatus(msg);
|
||||
main_ui_->actionCaptureStart->setChecked(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -752,6 +753,7 @@ void MainWindow::startCapture() {
|
|||
if(!capture_filter_valid_) {
|
||||
QString msg = QString(tr("Invalid capture filter"));
|
||||
main_ui_->statusBar->pushTemporaryStatus(msg);
|
||||
main_ui_->actionCaptureStart->setChecked(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -3015,6 +3017,7 @@ void MainWindow::on_actionCaptureStart_triggered()
|
|||
if (global_capture_opts.num_selected == 0) {
|
||||
QString err_msg = tr("No Interface Selected");
|
||||
main_ui_->statusBar->pushTemporaryStatus(err_msg);
|
||||
main_ui_->actionCaptureStart->setChecked(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue