Tracker: Unchecked dynamic_cast, CID 603123
This commit is contained in:
parent
ee090c5313
commit
404b6d40d3
@ -2326,7 +2326,9 @@ FindPanel::RestoreWindowState(const BNode* node)
|
|||||||
fTemporaryCheck->SetValue(saveMoreOptions.temporary);
|
fTemporaryCheck->SetValue(saveMoreOptions.temporary);
|
||||||
|
|
||||||
fQueryName->SetModificationMessage(NULL);
|
fQueryName->SetModificationMessage(NULL);
|
||||||
FillCurrentQueryName(fQueryName, dynamic_cast<FindWindow*>(Window()));
|
FindWindow* findWindow = dynamic_cast<FindWindow*>(Window());
|
||||||
|
if (findWindow != NULL)
|
||||||
|
FillCurrentQueryName(fQueryName, findWindow);
|
||||||
|
|
||||||
// set modification message after checking the temporary check box,
|
// set modification message after checking the temporary check box,
|
||||||
// and filling out the text control so that we do not always trigger
|
// and filling out the text control so that we do not always trigger
|
||||||
|
Loading…
Reference in New Issue
Block a user