summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index e8d9de7..c8d77a7 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -520,15 +520,16 @@ void Wellenreiter::startClicked()
- if ( !net->isPresent( interface ) )
- {
- QMessageBox::information( this, "Wellenreiter II",
- tr( "The configured device (%1)\nis not available on this system\n. Please reconfigure!" ).arg( interface ) );
- return;
- }
-
- iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless!
- assert( iface );
-
- // bring device UP
if ( cardtype != DEVTYPE_FILE )
{
+
+ if ( !net->isPresent( interface ) )
+ {
+ QMessageBox::information( this, "Wellenreiter II",
+ tr( "The configured device (%1)\nis not available on this system\n. Please reconfigure!" ).arg( interface ) );
+ return;
+ }
+
+ iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless!
+ assert( iface );
+
+ // bring device UP
iface->setUp( true );
@@ -646,3 +647,3 @@ void Wellenreiter::startClicked()
( (QMainWindow*) parent() )->setCaption( tr( "Wellenreiter II - replaying capture file..." ) );
- }
+ }
}