X-Git-Url: https://ruin.nu/git/?p=adress.git;a=blobdiff_plain;f=mainwindow.cpp;fp=mainwindow.cpp;h=0bafd08875f68a66eff8ac0b0ecb784c7b150999;hp=34c431e11cf94ee3c24fd49732297b5780b76265;hb=d959497b3c1b469d5e7bfcc161198823ca8e7a4d;hpb=e2721b2f5b828bf44923e249832c298972e8413f diff --git a/mainwindow.cpp b/mainwindow.cpp index 34c431e..0bafd08 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -95,7 +95,7 @@ void MainWindow::updateView() while (contact != '\0') { - s = i; + s.sprintf("%1").arg(i); (void) new QListViewItem(ContactView, s, contact->lastname(), contact->firstname(), contact->adress(), contact->phoneNumber()); contact = contact->getNext(); i++;