fixed crash when no item to unban is actually selected in Banned files list

This commit is contained in:
csoler 2018-09-06 22:14:17 +02:00
parent ce5778cb8c
commit 76d16f61ef
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -48,6 +48,9 @@ void BannedFilesDialog::unbanFile()
QTableWidgetItem *item = ui.bannedFiles_TW->item(row, COLUMN_FILE_HASH);
if(!item)
return ;
RsFileHash hash(item->data(Qt::UserRole).toString().toStdString()) ;
rsFiles->unbanFile(hash) ;