snippets: raise the window when updating the content

This commit is contained in:
Jean-Francois Dockes
2019-07-21 19:13:24 +02:00
parent 910a46118a
commit 997a01db32
+2 -1
View File
@@ -80,7 +80,7 @@ void SnippetsW::init()
QPushButton *searchButton = new QPushButton(tr("Search"));
searchButton->setAutoDefault(false);
buttonBox->addButton(searchButton, QDialogButtonBox::ActionRole);
// setWindowFlags(Qt::WindowStaysOnTopHint);
searchFM->hide();
new QShortcut(QKeySequence::Find, this, SLOT(slotEditFind()));
@@ -229,6 +229,7 @@ void SnippetsW::onSetDoc(Rcl::Doc doc, std::shared_ptr<DocSequence> source)
browser->moveCursor (QTextCursor::Start);
browser->ensureCursorVisible();
#endif
raise();
}
void SnippetsW::slotEditFind()