Qt Code:
if(!name.isEmpty()) return ; model->mkdir(index,name);To copy to clipboard, switch view to plain text mode
this should be like thisif(!name.isEmpty())if(name.isEmpty()).
When the name is not empty, you need to create the folder.
you need to remove the ! before name. isEmpty will return true when the string is empty.
hope it helps,
bala
Bookmarks