mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
Library: explicit braces to avoid ambiguous 'else'
This commit is contained in:
parent
20bcd2235a
commit
62db328ab5
@ -219,6 +219,7 @@ bool ReadingListModel::canDropMimeData(const QMimeData *data, Qt::DropAction act
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
if(rowIsReadingList(row,parent))// TODO avoid droping in a different parent
|
if(rowIsReadingList(row,parent))// TODO avoid droping in a different parent
|
||||||
|
{
|
||||||
if(!parent.isValid())
|
if(!parent.isValid())
|
||||||
return false;
|
return false;
|
||||||
else
|
else
|
||||||
@ -232,6 +233,7 @@ bool ReadingListModel::canDropMimeData(const QMimeData *data, Qt::DropAction act
|
|||||||
return data->formats().contains(YACReader::YACReaderLibrarSubReadingListMimeDataFormat);
|
return data->formats().contains(YACReader::YACReaderLibrarSubReadingListMimeDataFormat);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user