Skip to content

Commit

Permalink
fix!: make plugin compatible with QtCreator 5.0.2 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
gikari authored Dec 3, 2022
1 parent e30f3de commit f259f49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion external/qtcreator/version.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
set(QT_CREATOR_VERSION "4.15.2")
set(QT_CREATOR_VERSION "5.0.2")
set(QT_CREATOR_SNAPSHOT "")
2 changes: 1 addition & 1 deletion src/qnvimplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ void QNVimPlugin::handleNotification(const QByteArray &name, const QVariantList
} else if (cmd == "BufWriteCmd") {
if (mEditors.contains(buffer)) {
QString currentFilename = this->filename(mEditors[buffer]);
if (mEditors[buffer]->document()->save(nullptr, filename)) {
if (mEditors[buffer]->document()->save(nullptr, Utils::FilePath::fromString(filename))) {
if (currentFilename != filename) {
mEditors.remove(buffer);
mChangedTicks.remove(buffer);
Expand Down

0 comments on commit f259f49

Please sign in to comment.