aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/MainUI.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
index 7425b399..b5d65559 100644
--- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
@@ -300,16 +300,16 @@ void MainUI::replaceOne(){
bool done = false;
if(cur->textCursor().selectedText()==ui->line_find->text()){
cur->insertPlainText(ui->line_replace->text());
- done = true;
- }else{
+ //done = true;
+ }//else{
//Find/replace the next occurance of the string
bool found = cur->find( ui->line_find->text(), ui->tool_find_casesensitive->isChecked() ? QTextDocument::FindCaseSensitively : QTextDocument::FindFlags() );
- if(found){ cur->insertPlainText(ui->line_replace->text()); done = true;}
- }
- if(done){
+ //if(found){ cur->insertPlainText(ui->line_replace->text()); done = true;}
+ //}
+ /*if(done){
//Re-highlight the newly-inserted text
cur->find( ui->line_replace->text(), QTextDocument::FindCaseSensitively | QTextDocument::FindBackward);
- }
+ }*/
}
void MainUI::replaceAll(){
bgstack15