Fix: Make quit working when krfb has been started from menu

Fix icons.
Patch by crazy.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=757206
This commit is contained in:
Urs Wolfer
2008-01-04 13:14:35 +00:00
parent a9ff5ffc8b
commit 0fb20dfff0
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
# KDE Config File
[Desktop Entry]
Type=Application
Exec=krfb -caption "%c"
Exec=krfb -caption "%c" %i
Icon=krfb
X-DocPath=krfb/index.html
Terminal=false

View File

@@ -32,6 +32,7 @@
#include <kapplication.h>
#include <kmessagebox.h>
#include <qwindowdefs.h>
#include <KIcon>
#include <signal.h>
@@ -75,7 +76,7 @@ int main(int argc, char *argv[])
KCmdLineArgs::init(argc, argv, &aboutData);
KApplication app;
QApplication::setWindowIcon(KIcon("krfb"));
TrayIcon trayicon(new ManageInvitationsDialog);
KrfbServer *server = KrfbServer::self(); // initialize the server manager