Add an explicit check for empty string to dir_exists
This commit is contained in:
parent
101a5e506f
commit
658a1ae624
@ -12,6 +12,9 @@ bool file_exists(QString file_path)
|
||||
|
||||
bool dir_exists(QString dir_path)
|
||||
{
|
||||
if (dir_path == "")
|
||||
return false;
|
||||
|
||||
QDir check_dir(dir_path);
|
||||
|
||||
return check_dir.exists();
|
||||
|
Loading…
Reference in New Issue
Block a user