summaryrefslogtreecommitdiff
Unidiff
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()
520 520
521 if ( !net->isPresent( interface ) )
522 {
523 QMessageBox::information( this, "Wellenreiter II",
524 tr( "The configured device (%1)\nis not available on this system\n. Please reconfigure!" ).arg( interface ) );
525 return;
526 }
527
528 iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless!
529 assert( iface );
530
531 // bring device UP
532 if ( cardtype != DEVTYPE_FILE ) 521 if ( cardtype != DEVTYPE_FILE )
533 { 522 {
523
524 if ( !net->isPresent( interface ) )
525 {
526 QMessageBox::information( this, "Wellenreiter II",
527 tr( "The configured device (%1)\nis not available on this system\n. Please reconfigure!" ).arg( interface ) );
528 return;
529 }
530
531 iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless!
532 assert( iface );
533
534 // bring device UP
534 iface->setUp( true ); 535 iface->setUp( true );
@@ -646,3 +647,3 @@ void Wellenreiter::startClicked()
646 ( (QMainWindow*) parent() )->setCaption( tr( "Wellenreiter II - replaying capture file..." ) ); 647 ( (QMainWindow*) parent() )->setCaption( tr( "Wellenreiter II - replaying capture file..." ) );
647 } 648 }
648} 649}