2
0
forked from Ivasoft/DSView

Disable the log open button if the log file not exist

This commit is contained in:
dreamsourcelabTAI
2023-05-30 16:38:26 +08:00
parent a5aa7463f4
commit 403f48b9be

View File

@@ -276,6 +276,12 @@ void LogoBar::on_action_setting_log()
lay->addRow("", btWid);
QFile qf(get_dsv_log_path());
if (qf.exists() == false){
btOpen->setEnabled(false);
btClear->setEnabled(false);
}
dlg.exec();
if (dlg.IsClickYes()){