Is the view.currentRow always returns = -1, IF no Row is selected ??
For me, the code below works fine
Qt Code:
if(view.currentRow == -1){ console.log("No Row is selected !!") } else{ console.log("Row is selected OK") }To copy to clipboard, switch view to plain text mode
Bookmarks