mirror of
https://github.com/leozide/leocad.git
synced 2026-07-27 19:56:49 +00:00
Merge pull request #902 from gerw/fix_search
Fix freeze for find/replace
This commit is contained in:
@@ -2714,17 +2714,17 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId)
|
||||
|
||||
case LC_EDIT_FIND_NEXT:
|
||||
if (ActiveModel)
|
||||
ActiveModel->FindReplacePiece(true, false);
|
||||
ActiveModel->FindReplacePiece(true, false, false);
|
||||
break;
|
||||
|
||||
case LC_EDIT_FIND_PREVIOUS:
|
||||
if (ActiveModel)
|
||||
ActiveModel->FindReplacePiece(false, false);
|
||||
ActiveModel->FindReplacePiece(false, false, false);
|
||||
break;
|
||||
|
||||
case LC_EDIT_FIND_ALL:
|
||||
if (ActiveModel)
|
||||
ActiveModel->FindReplacePiece(true, true);
|
||||
ActiveModel->FindReplacePiece(true, true, false);
|
||||
break;
|
||||
|
||||
case LC_EDIT_REPLACE:
|
||||
@@ -2734,12 +2734,12 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId)
|
||||
|
||||
case LC_EDIT_REPLACE_ALL:
|
||||
if (ActiveModel)
|
||||
ActiveModel->FindReplacePiece(true, true);
|
||||
ActiveModel->FindReplacePiece(true, true, true);
|
||||
break;
|
||||
|
||||
case LC_EDIT_REPLACE_NEXT:
|
||||
if (ActiveModel)
|
||||
ActiveModel->FindReplacePiece(true, false);
|
||||
ActiveModel->FindReplacePiece(true, false, true);
|
||||
break;
|
||||
|
||||
case LC_EDIT_SELECT_ALL:
|
||||
|
||||
Reference in New Issue
Block a user