better purging
authormichael <michael>
Mon, 22 May 2006 12:22:00 +0000 (12:22 +0000)
committermichael <michael>
Mon, 22 May 2006 12:22:00 +0000 (12:22 +0000)
snom.pl

diff --git a/snom.pl b/snom.pl
index b9e0081..9205a57 100755 (executable)
--- a/snom.pl
+++ b/snom.pl
@@ -1,5 +1,5 @@
 #!/bin/sh
-#$Id: snom.pl,v 1.36 2006-05-22 12:20:15 michael Exp $
+#$Id: snom.pl,v 1.37 2006-05-22 12:22:00 michael Exp $
 
 # http://developer.gnome.org/doc/API/2.2/gtk/gtk-migrating-GtkComboBox.html
 
@@ -356,7 +356,7 @@ sub UpdatePhoneInfo
        my $response = $ua->request($req);
        
        $g_identity->set_active(0);
-       while(defined($g_identity->get_active_text())) {
+       while($g_identity->get_active() == 0) {
                $g_identity->remove_text(0);
                $g_identity->set_active(0);
        }
Impressum, Datenschutz