Qt: Disable Refresh Interfaces while refreshing

Doing multiple Refresh Interfaces simultaneously will end up in
duplicated interfaces.

Change-Id: If9bb4252bbfabc557b78ad42efc0011050012417
Reviewed-on: https://code.wireshark.org/review/12414
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Stig Bjørlykke 2015-12-03 21:31:47 +01:00 committed by Anders Broman
parent 0a33e352f4
commit 7e06334a87
1 changed files with 2 additions and 0 deletions

View File

@ -3532,7 +3532,9 @@ void MainWindow::on_actionCaptureOptions_triggered()
void MainWindow::on_actionCaptureRefreshInterfaces_triggered()
{
main_ui_->actionCaptureRefreshInterfaces->setEnabled(false);
wsApp->refreshLocalInterfaces();
main_ui_->actionCaptureRefreshInterfaces->setEnabled(true);
}
#endif