forked from Ivasoft/DSView
Disable the log open button if the log file not exist
This commit is contained in:
@@ -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()){
|
||||
|
||||
Reference in New Issue
Block a user