[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-30 10:14:33
Message-ID: 1120126473.437736.19958.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 430148 by gianni:

more information on the Plain Caption

 M  +8 -1      ksniffer.cpp  


--- trunk/playground/network/ksniffer/ksniffer.cpp #430147:430148
@@ -408,6 +408,7 @@
                               i18n("<p>You selected <b>%1</b> interface.<br>Now starting to sniff.</p>")
                                   .arg(cod->selectedInterface()), icon, this );
 
+      setPlainCaption( i18n("KSniffer - Capturing on %1 interface").arg(cod->selectedInterface()) );
       // create CaptureOptions object to give to the Sniffer's constuctor
       m_options->setStrInterface(cod->selectedInterface());
       m_sniffer->setCaptureOptions(m_options);
@@ -649,11 +650,17 @@
 
   m_sniffer->stopSniffing();
 
-  // captured data needs to be saved before to quit
+  // captured data needs to be saved before to quit...
+  // ...if there will be packets available
   m_needToSave = true;
 
   if (!m_packets->packetAvailable())
+  {
+    setPlainCaption( i18n("KSniffer - The KDE Network Sniffer") );
     KMessageBox::information(this, i18n("You got no packets."));
+  }
+  else
+    setPlainCaption( i18n("KSniffer - Unsaved Packets") );
   m_actNew->setEnabled(TRUE);
   m_actSave->setEnabled(TRUE);
   m_actSaveAs->setEnabled(TRUE);
[prev in list] [next in list] [prev in thread] [next in thread] 

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