Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
frmSearch: Event posting shouldn't happen when in search mode.
[xestiaab/.git]
/
source
/
search
/
frmSearch.cpp
diff --git
a/source/search/frmSearch.cpp
b/source/search/frmSearch.cpp
index
d224764
..
9e4d8aa
100644
(file)
--- a/
source/search/frmSearch.cpp
+++ b/
source/search/frmSearch.cpp
@@
-463,20
+463,24
@@
void frmSearch::CloseWindow( wxCloseEvent& event ){
// Close window.
// Close window.
- WindowData *WData = new WindowData;
+ if (SearchMode == false){
+
+ WindowData *WData = new WindowData;
- WData->DataType = 2;
- WData->WindowPointer = this;
- WData->WindowID = SearchUID;
+
WData->DataType = 2;
+
WData->WindowPointer = this;
+
WData->WindowID = SearchUID;
- wxCommandEvent delevent(WINDOW_CLOSE);
- delevent.SetClientData(WData);
- wxPostEvent(GetParent(), delevent);
+
wxCommandEvent delevent(WINDOW_CLOSE);
+
delevent.SetClientData(WData);
+
wxPostEvent(GetParent(), delevent);
- wxCommandEvent rs(CE_REMOVESEARCH);
- wxPostEvent(this, rs);
+
wxCommandEvent rs(CE_REMOVESEARCH);
+
wxPostEvent(this, rs);
- WData = NULL;
+ WData = NULL;
+
+ }
this->Destroy();
this->Destroy();
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy