forked from qt-creator/qt-creator
Beautifier: Fix code style
Change-Id: I991f47d2f6844b153cd47ac856e5a76a7a962c94 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -314,7 +314,7 @@ void BeautifierPlugin::formatEditorAsync(TextEditorWidget *editor, const Command
|
||||
QFutureWatcher<FormatTask> *watcher = new QFutureWatcher<FormatTask>;
|
||||
const TextDocument *doc = editor->textDocument();
|
||||
connect(doc, &TextDocument::contentsChanged, watcher, &QFutureWatcher<FormatTask>::cancel);
|
||||
connect(watcher, &QFutureWatcherBase::finished, [this, watcher]() {
|
||||
connect(watcher, &QFutureWatcherBase::finished, [this, watcher] {
|
||||
if (watcher->isCanceled())
|
||||
showError(tr("File was modified."));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user