gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stupid bug in xgnokii phonebook editor


From: Malte Lundberg
Subject: Re: stupid bug in xgnokii phonebook editor
Date: Tue, 28 Feb 2012 18:47:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1

Hello Chris.

would you be so kind, to forward your .gnokiirc file to me ?
As i explained in my mail of 21.02.12 i am not able get a gnokii --identify from my Nokia C1-02

Tanks in advance

Malte

On 02/26/12 17:55, chr[] wrote:
Hi!

I've got a Nokia C1 phone, which does support multiple phone numbers per name
entry, that is the PM_EXTPBK flag, isn't it? xgnokii phone book editor shows up
correct but editing truncates the list.

Steps to reproduce: launch xgnokii, read phone book. Now create a new phone
book entry and add>1 numbers to it. Click ok, close the two dialogs. Reopen
the entry from the list, open the numbers list: it's truncated to one entry:

xgnokii/xgnokii_contacts.c line 395 in EditPhonebookEntry()

if (phoneMonitor.supported&  PM_EXTPBK) {
     number = g_malloc(sizeof(char) * max_number_length);
     gtk_label_get(GTK_LABEL(data->number), number);
     snprintf(current_entry->entry.number, max_number_length, "%s", number[0]);
     snprintf(current_entry->entry.subentries[0].data.number, max_number_length,
"%s", number[0]);
     current_entry->entry.subentries[0].entry_type = GN_PHONEBOOK_ENTRY_Number;
     current_entry->entry.subentries[0].number_type =
GN_PHONEBOOK_NUMBER_General;
     // ??WTF::
     current_entry->entry.subentries_count = 1;
     g_free(number);
} else {
     snprintf(current_entry->entry.number, max_number_length, "%s",
          gtk_entry_get_text(GTK_ENTRY(data->number)));
}

This block doesn't make sense. Delete this block and the phone book works.
current_entry->entry.number is already set.

This is gnokii 0.6.32 from git/master @
4706c656ec05af5b44dbe98c075616817566329c



greets,

chr[]




_______________________________________________
gnokii-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gnokii-users



--
Malte Lundberg (Dipl.-Ing.)

Dienstleistungen fuer
die technische EDV                                      

Engentalweg 5
D-75438 Knittlingen
Tel.: +49 7043 33574




reply via email to

[Prev in Thread] Current Thread [Next in Thread]