On Wed, Jul 02, 2003 at 11:39:23AM -0400, <DeXteR> wrote:
> Latest checkout:
> 
> mainwin.cpp: In member function `virtual void
>    CMainWindow::keyPressEvent(QKeyEvent*)':
> mainwin.cpp:1118: warning: unused variable `long unsigned int nUin'
> mainwin.cpp: In member function `void CMainWindow::slot_popupall()':
> mainwin.cpp:4375: invalid conversion from `long unsigned int' to `
>    QListViewItem*'
> mainwin.cpp:4375:   initializing argument 1 of `void
>    CMainWindow::callDefaultFunction(QListViewItem*)'
> make[2]: *** [mainwin.lo] Error 1
> make[2]: Leaving directory `/home/dexter/progs/licq/plugins/qt-gui/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/dexter/progs/licq/plugins/qt-gui'
> make: *** [all] Error 2

There is another checkin from Jon:

Modified Files:
        mainwin.cpp
Log Message:
Another fix


Index: mainwin.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/mainwin.cpp,v
retrieving revision 1.291
retrieving revision 1.292
diff -u -d -r1.291 -r1.292
--- mainwin.cpp 2 Jul 2003 15:58:30 -0000       1.291
+++ mainwin.cpp 2 Jul 2003 17:11:31 -0000       1.292
@@ -4360,19 +4360,22 @@
     callOwnerFunction(OwnerMenuView);
   }

-  UinList uins;
+  UserStringList users;
+  std::list<unsigned long> ppids;
   FOR_EACH_USER_START(LOCK_R)
   {
     if (pUser->NewMessages() > 0)
     {
-      uins.push_back(pUser->Uin());
+      users.push_back(pUser->IdString());
+      ppids.push_back(pUser->PPID());
     }
   }
   FOR_EACH_USER_END

-  for (UinList::iterator iter = uins.begin(); iter != uins.end(); iter++)
+  for (UserStringList::iterator iter = users.begin(); iter != users.end();
+iter++)
   {
-    callDefaultFunction(*iter);
+    callDefaultFunction(*iter, ppids.front());
+    ppids.pop_front();
   }
 }

With this it works for me.

Philipp

-- 
Life is not fair,
but the root password helps!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to