Skip to content

Commit f259f49

Browse files
authored
fix!: make plugin compatible with QtCreator 5.0.2 (#37)
1 parent e30f3de commit f259f49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

external/qtcreator/version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
set(QT_CREATOR_VERSION "4.15.2")
1+
set(QT_CREATOR_VERSION "5.0.2")
22
set(QT_CREATOR_SNAPSHOT "")

src/qnvimplugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ void QNVimPlugin::handleNotification(const QByteArray &name, const QVariantList
807807
} else if (cmd == "BufWriteCmd") {
808808
if (mEditors.contains(buffer)) {
809809
QString currentFilename = this->filename(mEditors[buffer]);
810-
if (mEditors[buffer]->document()->save(nullptr, filename)) {
810+
if (mEditors[buffer]->document()->save(nullptr, Utils::FilePath::fromString(filename))) {
811811
if (currentFilename != filename) {
812812
mEditors.remove(buffer);
813813
mChangedTicks.remove(buffer);

0 commit comments

Comments
 (0)