1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 19:39:41 +00:00

clang-format

This commit is contained in:
unelsson 2023-01-14 21:42:33 +02:00
parent 7fce4bc8c4
commit 50726636ba
2 changed files with 2 additions and 3 deletions

View file

@ -22,8 +22,7 @@ bool CSVWorld::DragDropUtils::isTopicOrJournal(const QDropEvent& event, CSMWorld
{ {
const CSMWorld::TableMimeData* data = getTableMimeData(event); const CSMWorld::TableMimeData* data = getTableMimeData(event);
return data != nullptr return data != nullptr
&& (data->holdsType(CSMWorld::UniversalId::Type_Topic) && (data->holdsType(CSMWorld::UniversalId::Type_Topic) || data->holdsType(CSMWorld::UniversalId::Type_Journal));
|| data->holdsType(CSMWorld::UniversalId::Type_Journal));
} }
bool CSVWorld::DragDropUtils::isInfo(const QDropEvent& event, CSMWorld::ColumnBase::Display type) bool CSVWorld::DragDropUtils::isInfo(const QDropEvent& event, CSMWorld::ColumnBase::Display type)

View file

@ -260,7 +260,7 @@ void CSVWorld::TableBottomBox::createRequest()
void CSVWorld::TableBottomBox::createRecordsDirectlyRequest(const std::string& id) void CSVWorld::TableBottomBox::createRecordsDirectlyRequest(const std::string& id)
{ {
if (InfoCreator* creator = dynamic_cast<InfoCreator*> (mCreator)) if (InfoCreator* creator = dynamic_cast<InfoCreator*>(mCreator))
{ {
creator->reset(); creator->reset();
creator->setText(id); creator->setText(id);