diff options
author | Fritz Elfert <felfert@to.com> | 2001-07-31 18:29:32 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-07-31 18:29:32 +0000 |
commit | 5ab6d90452fcfe15d6aaafc599c5467d3c05552a (patch) | |
tree | 35e05b156eba47efcd7b0a69ba0740dc9a20b44c /kde2/klipsi/main.cpp | |
parent | c6175786a87c8a244d80352658d95a321571469f (diff) | |
download | plptools-5ab6d90452fcfe15d6aaafc599c5467d3c05552a.tar.gz plptools-5ab6d90452fcfe15d6aaafc599c5467d3c05552a.tar.bz2 plptools-5ab6d90452fcfe15d6aaafc599c5467d3c05552a.zip |
Added check for unsupported operation.
Diffstat (limited to 'kde2/klipsi/main.cpp')
-rw-r--r-- | kde2/klipsi/main.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/kde2/klipsi/main.cpp b/kde2/klipsi/main.cpp index e0cbd71..1cfa271 100644 --- a/kde2/klipsi/main.cpp +++ b/kde2/klipsi/main.cpp @@ -55,11 +55,16 @@ int main(int argc, char *argv[]) TopLevel *toplevel = new TopLevel(); - KWin::setSystemTrayWindowFor(toplevel->winId(), 0); - toplevel->setGeometry(-100, -100, 42, 42 ); - toplevel->show(); + if (toplevel->isNotSupported()) + app.quit(); + else { + KWin::setSystemTrayWindowFor(toplevel->winId(), 0); + toplevel->setGeometry(-100, -100, 42, 42 ); + toplevel->show(); - return app.exec(); + return app.exec(); + } + return 0; } /* * Local variables: |