Browse CVS Repository
Diff of /malonnote/main.cpp
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 3 |
#include <wx/wx.h> |
#include <wx/wx.h> |
| 4 |
#include <wx/image.h> |
#include <wx/image.h> |
| 5 |
#include <wx/snglinst.h> |
#include <wx/snglinst.h> |
| 6 |
|
#include "mnDef.h" |
| 7 |
#include "mnFrame.h" |
#include "mnFrame.h" |
| 8 |
#include "mnController.h" |
#include "mnController.h" |
| 9 |
|
|
|
#define MY_APP "MalonNote" |
|
| 10 |
|
|
| 11 |
class mnApp: public wxApp { |
class mnApp: public wxApp { |
| 12 |
public: |
public: |
| 25 |
bool mnApp::OnInit() |
bool mnApp::OnInit() |
| 26 |
{ |
{ |
| 27 |
|
|
| 28 |
const wxString appName = wxString::Format(wxT(MY_APP) wxT("-%s"), wxGetUserId().c_str()); |
const wxString appName = wxString::Format(wxT(MN_APP_NAME) wxT("-%s"), wxGetUserId().c_str()); |
| 29 |
|
|
| 30 |
m_checker = new wxSingleInstanceChecker(appName); |
m_checker = new wxSingleInstanceChecker(appName); |
| 31 |
if ( m_checker->IsAnotherRunning() ){ |
if ( m_checker->IsAnotherRunning() ){ |
|
|
Legend:
| Removed from v.1.1.1.1 |
|
| changed lines |
| |
Added in v.1.1.1.1.2.1 |
|
|
|