This commit is contained in:
parent
5c66827668
commit
9b4d2b7188
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue