From 98196030da571da62ecb2fdd67e77a1e941d175a Mon Sep 17 00:00:00 2001 From: eilers Date: Fri, 09 May 2003 13:33:22 +0000 Subject: Had misunderstanding about name of the qcop call and show closed the app immediately.. --- (limited to 'core/pim/addressbook') diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index e053e94..975911e 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp @@ -652,6 +652,8 @@ static void parseName( const QString& name, QString *first, QString *middle, void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) { + qWarning("Receiving QCop-Call with message %s", QString( msg ).latin1() ); + if (msg == "editPersonal()") { editPersonal(); } else if (msg == "editPersonalAndClose()") { @@ -686,11 +688,13 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) connect( ir, SIGNAL( done( Ir * ) ), this, SLOT( beamDone( Ir * ) ) ); QString description = "mycard.vcf"; ir->send( beamFilename, description, "text/x-vCard" ); - } else if ( msg == "showUid(int)" ) { + } else if ( msg == "show(int)" ) { QDataStream stream(data,IO_ReadOnly); int uid; stream >> uid; + qWarning( "Showing uid: %d" , uid ); + // Deactivate Personal View.. if ( actionPersonal->isOn() ){ actionPersonal->setOn( false ); @@ -701,8 +705,10 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) m_abView -> setShowByCategory( QString::null ); m_abView -> setCurrentUid( uid ); slotViewSwitched ( AbView::CardView ); + + qApp->exec(); - } else if ( msg == "editUid(int)" ) { + } else if ( msg == "edit(int)" ) { QDataStream stream(data,IO_ReadOnly); int uid; stream >> uid; -- cgit v0.9.0.2