mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
fixed crash when no item to unban is actually selected in Banned files list
This commit is contained in:
parent
ce5778cb8c
commit
76d16f61ef
@ -48,6 +48,9 @@ void BannedFilesDialog::unbanFile()
|
|||||||
|
|
||||||
QTableWidgetItem *item = ui.bannedFiles_TW->item(row, COLUMN_FILE_HASH);
|
QTableWidgetItem *item = ui.bannedFiles_TW->item(row, COLUMN_FILE_HASH);
|
||||||
|
|
||||||
|
if(!item)
|
||||||
|
return ;
|
||||||
|
|
||||||
RsFileHash hash(item->data(Qt::UserRole).toString().toStdString()) ;
|
RsFileHash hash(item->data(Qt::UserRole).toString().toStdString()) ;
|
||||||
rsFiles->unbanFile(hash) ;
|
rsFiles->unbanFile(hash) ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user