From 9b4d2b7188a54a12d5011cd895b87f53497bc984 Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Fri, 25 Nov 2022 00:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scanner/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp index aee7e506..303c171c 100644 --- a/app/scanner/mainwindow.cpp +++ b/app/scanner/mainwindow.cpp @@ -904,6 +904,7 @@ void MainWindow::on_new_image(void *img, int statu) if (!judgeDiskSpace(Dialog_ClrCache::getCachePath(), false)) { m_cacheDirNotify = true; + on_stopScan(); QString info = tr("the disk space in the current path is unsufficient, please select a new path or clear the disk space in time."); m_wndStatusBar->setDeviceStatusInfo(info, true); @@ -911,7 +912,6 @@ void MainWindow::on_new_image(void *img, int statu) HGBase_WriteInfo(HGBASE_INFOTYPE_ERROR, "disk space is unsufficient!"); QMessageBox::warning(this, tr("warning"), info); - on_stopScan(); HGBase_DestroyImage(image); return; } @@ -968,6 +968,7 @@ void MainWindow::on_new_image(void *img, int statu) if (!judgeDiskSpace(m_aquireIntoSaveParam.m_savePath, false)) { m_AquirePathNotify = true; + on_stopScan(); QString info = tr("the disk space in the current path is unsufficient, please select a new path or clear the disk space in time."); m_wndStatusBar->setDeviceStatusInfo(info, true); @@ -975,7 +976,6 @@ void MainWindow::on_new_image(void *img, int statu) HGBase_WriteInfo(HGBASE_INFOTYPE_ERROR, "disk space is unsufficient!"); QMessageBox::warning(this, tr("warning"), info); - on_stopScan(); HGBase_DestroyImage(image); return; } @@ -3591,7 +3591,7 @@ bool MainWindow::judgeDiskSpace(QString currentPath, bool showDlg) qint64 available_size = 0; available_size = storage.bytesAvailable()/1024/1024; - if(available_size < 294 * 1024) + if(available_size < 64) { if (showDlg) {