From ca32f9c2a799aec751efd82e73c3154de1afe957 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sun, 28 Mar 2004 13:39:39 +0000 Subject: fix stupid bug that broke replaying capture files --- (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') 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 @@ -518,19 +518,20 @@ void Wellenreiter::startClicked() // TODO: check if interface is wireless and support sniffing for non-wireless interfaces - 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(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(net->interface( interface )); // fails if network is not wireless! + assert( iface ); + + // bring device UP iface->setUp( true ); if ( !iface->isUp() ) { @@ -644,7 +645,7 @@ void Wellenreiter::startClicked() { assert( parent() ); ( (QMainWindow*) parent() )->setCaption( tr( "Wellenreiter II - replaying capture file..." ) ); - } + } } -- cgit v0.9.0.2