summaryrefslogtreecommitdiff
path: root/RealtimeSync/tray_menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'RealtimeSync/tray_menu.cpp')
-rw-r--r--RealtimeSync/tray_menu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/RealtimeSync/tray_menu.cpp b/RealtimeSync/tray_menu.cpp
index a30081bf..3319f427 100644
--- a/RealtimeSync/tray_menu.cpp
+++ b/RealtimeSync/tray_menu.cpp
@@ -129,9 +129,9 @@ class TrayIconHolder
{
public:
TrayIconHolder(const wxString& jobname, AbortCallback& abortCb) :
- jobName_(jobname)
+ jobName_(jobname),
+ trayMenu(new RtsTrayIconRaw(abortCb))
{
- trayMenu = new RtsTrayIconRaw(abortCb); //not in initialization list: give it a valid parent object!
showIconActive();
}
@@ -175,8 +175,8 @@ public:
}
private:
- RtsTrayIconRaw* trayMenu;
const wxString jobName_; //RTS job name, may be empty
+ RtsTrayIconRaw* trayMenu;
};
bgstack15