mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 21:29:23 -04:00
fixed crash when no item to unban is actually selected in Banned files list
This commit is contained in:
parent
ce5778cb8c
commit
76d16f61ef
1 changed files with 3 additions and 0 deletions
|
@ -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) ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue