[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:       2010-10-07 16:06:29
Message-ID: 20101007160629.9D91BAC892 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1183499 by gianni:

assign initial value to the variable

 M  +5 -2      mainwindow.cpp  
 M  +1 -1      mainwindow.h  


--- trunk/playground/network/ksniffer/mainwindow.cpp #1183498:1183499
@@ -68,6 +68,9 @@
 
   // reset main widget title
   setPlainCaption( i18n("KSniffer - A KDE Network Sniffer") );
+
+  // no captured-packets available yet
+  m_needToSavePackets = false;
 }
 
 
@@ -228,7 +231,7 @@
       else
       {
         // need to save data when available
-        m_needToSave = true;
+        m_needToSavePackets = true;
 
         // we have to remove the captured data
         m_packets->clearList();
@@ -236,7 +239,7 @@
     else
     {
       // need to save data when available
-      m_needToSave = true;
+      m_needToSavePackets = true;
     }
     statusBar()->showMessage( i18n("Sniffing network by \"%1\" \
interface.").arg(cod->selectedInterface()) );  
--- trunk/playground/network/ksniffer/mainwindow.h #1183498:1183499
@@ -101,7 +101,7 @@
   /**
    * Data need to be saved when available
    */
-  bool m_needToSaveData;
+  bool m_needToSavePackets;
 
   private:
     void setupActions();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic