summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-03-28 13:39:39 (UTC)
committer mickeyl <mickeyl>2004-03-28 13:39:39 (UTC)
commitca32f9c2a799aec751efd82e73c3154de1afe957 (patch) (side-by-side diff)
tree4577ffe310acac81451235a4b11f0bf2ec86c3bc
parent0821e9018b0a3b1ea11ff5a4454db2e047d94d88 (diff)
downloadopie-ca32f9c2a799aec751efd82e73c3154de1afe957.zip
opie-ca32f9c2a799aec751efd82e73c3154de1afe957.tar.gz
opie-ca32f9c2a799aec751efd82e73c3154de1afe957.tar.bz2
fix stupid bug that broke replaying capture files
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
@@ -519,17 +519,18 @@ 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<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 );
if ( !iface->isUp() )
@@ -645,5 +646,5 @@ void Wellenreiter::startClicked()
assert( parent() );
( (QMainWindow*) parent() )->setCaption( tr( "Wellenreiter II - replaying capture file..." ) );
- }
+ }
}