From 7ff89a7ca0437ce3beb8ad61eabb8da6a40d9f14 Mon Sep 17 00:00:00 2001 From: xiaoming <2014500726@smail.xtu.edu.cn> Date: Mon, 7 Aug 2023 16:54:53 +0800 Subject: [PATCH] src:fix windows build Signed-off-by: xiaoming <2014500726@smail.xtu.edu.cn> --- src/fsviewmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fsviewmodel.cpp b/src/fsviewmodel.cpp index 2afe5e2..6db4b1a 100644 --- a/src/fsviewmodel.cpp +++ b/src/fsviewmodel.cpp @@ -337,7 +337,7 @@ int Jffs2FSViewModel::fs_read_file(QString output, QFile &input) { QString output_path = output_info.absolutePath(); QString output_name = output_info.fileName(); #if defined(Q_OS_WIN) - input_path.replace("C:/",""); + output_path.replace("C:/",""); #endif struct jffs2_raw_dirent *dd; @@ -364,7 +364,7 @@ int Jffs2FSViewModel::fs_create_dir(QString path) { QString output_path = output_info.absolutePath(); QString output_name = output_info.fileName(); #if defined(Q_OS_WIN) - input_path.replace("C:/",""); + output_path.replace("C:/",""); #endif struct jffs2_raw_dirent *dd;