|
|
@ -1279,7 +1279,7 @@ void SearchDlg::slotOpen()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (item->uri().startsWith("knotes:/") )
|
|
|
|
else if (item->uri().startsWith("knotes:/") )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
slotOpenKNotes(item->uri().mid(9,22));
|
|
|
|
slotOpenKNotes(item->uri().mid(10,21));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (item->uri().startsWith("note:/")) {
|
|
|
|
else if (item->uri().startsWith("note:/")) {
|
|
|
|
KProcess *proc = new KProcess;
|
|
|
|
KProcess *proc = new KProcess;
|
|
|
@ -1350,7 +1350,6 @@ void SearchDlg::slotOpenKNotes(const QString ¬eid)
|
|
|
|
QByteArray data;
|
|
|
|
QByteArray data;
|
|
|
|
QDataStream arg(data, IO_WriteOnly);
|
|
|
|
QDataStream arg(data, IO_WriteOnly);
|
|
|
|
arg << noteid;
|
|
|
|
arg << noteid;
|
|
|
|
|
|
|
|
|
|
|
|
kapp->dcopClient()->send("knotes","KNotesIface","showNote(QString)", data);
|
|
|
|
kapp->dcopClient()->send("knotes","KNotesIface","showNote(QString)", data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1819,6 +1818,11 @@ static QLabel* dateSwitches[dateSwitchesCount] = {showAnyDate, showToday, showSi
|
|
|
|
|
|
|
|
|
|
|
|
bool SearchDlg::ensureServiceRunning(const QString& name)
|
|
|
|
bool SearchDlg::ensureServiceRunning(const QString& name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
QCString appname = name.utf8();
|
|
|
|
|
|
|
|
if (kapp->dcopClient()->isApplicationRegistered(appname)) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
QStringList URLs;
|
|
|
|
QStringList URLs;
|
|
|
|
QByteArray data, replyData;
|
|
|
|
QByteArray data, replyData;
|
|
|
|
QCString replyType;
|
|
|
|
QCString replyType;
|
|
|
@ -1848,5 +1852,6 @@ bool SearchDlg::ensureServiceRunning(const QString & name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#include "searchdlg.moc"
|
|
|
|
#include "searchdlg.moc"
|
|
|
|