diff options
author | Michele Calgaro <[email protected]> | 2020-03-26 15:10:12 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-03-26 15:10:12 +0900 |
commit | 88fbf7e81a6ab317262bd97875a0296f59287586 (patch) | |
tree | 0effe4e64f5cdf3c0aa42e8ca8096cca8b6ddc89 /src/qtraylabel.h | |
parent | 5c2a45303ead893a78c69ddbef21d5acedf654ff (diff) | |
download | tdedocker-88fbf7e81a6ab317262bd97875a0296f59287586.tar.gz tdedocker-88fbf7e81a6ab317262bd97875a0296f59287586.zip |
1) Additional work on tq app -> tde app translation.
2) Make sure to exit app after restore if no app window can be grabbed
3) Save state only for known applications (app with empty name will not
be saved and restored)
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/qtraylabel.h')
-rw-r--r-- | src/qtraylabel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qtraylabel.h b/src/qtraylabel.h index c0a9e72..27d0ce4 100644 --- a/src/qtraylabel.h +++ b/src/qtraylabel.h @@ -60,8 +60,8 @@ public: bool isWithdrawn(void) const { return mWithdrawn; } bool isDockWhenMinimized(void) const { return mDockWhenMinimized; } - TQString appName(void) const { return mProgName[0]; } - virtual void setAppName(const TQString& prog) { mProgName[0] = prog; } + TQString appName(void) const { return (mProgName.count() > 0) ? mProgName[0] : TQString::null; } + virtual void setAppName(const TQString& prog); TQString appClass(void) const { return mClass; } TQString appTitle(void) const { return mTitle; } TQPixmap appIcon(void) const { return mAppIcon; } @@ -70,7 +70,7 @@ public: bool x11EventFilter(XEvent * event); // Session Management - virtual void saveState(TDEConfig *config); + virtual bool saveState(TDEConfig *config); virtual bool restoreState(TDEConfig *config); public slots: |