[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/network/ksniffer
From: Giovanni Venturi <gventuri73 () tiscali ! it>
Date: 2005-06-26 22:51:42
Message-ID: 1119826302.524869.27743.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 429207 by gianni:
the sniffing thread has to be stopped at once before to display \
KMessageBox::information else new packets could be captured before user click on OK \
button
M +8 -8 ksniffer.cpp
--- trunk/playground/network/ksniffer/ksniffer.cpp #429206:429207
@@ -644,6 +644,14 @@
// with this member we stop packets capture
void KSniffer::slotStop()
{
+ // it doesn't need to store packets anymore
+ m_packets->acceptPacket(false);
+
+ m_sniffer->stopSniffing();
+
+ // captured data needs to be saved before to quit
+ m_needToSave = true;
+
if (!m_packets->packetAvailable())
KMessageBox::information(this, i18n("You got no packets."));
m_actNew->setEnabled(TRUE);
@@ -653,14 +661,6 @@
m_actPrint->setEnabled(TRUE);
m_actStop->setEnabled(FALSE);
- // it doesn't need to store packets anymore
- m_packets->acceptPacket(false);
-
- m_sniffer->stopSniffing();
-
- // captured data needs to be saved before to quit
- m_needToSave = true;
-
changeStatusbar( i18n("Stopped sniffing. Now, ready again.") );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic