Bug #736 ยป 0006-Qt-Use-QVariant-typeId-instead-of-type-in-Qt6-mode.patch
client/gui-qt/citydlg.cpp | ||
---|---|---|
return;
|
||
}
|
||
#ifndef FC_QT5_MODE
|
||
fc_assert_ret(id.typeId() == QMetaType::Int);
|
||
#else // FC_QT5_MODE
|
||
fc_assert_ret(id.type() == QVariant::Int);
|
||
#endif // FC_QT5_MODE
|
||
worklist = global_worklist_get(global_worklist_by_id(id.toInt()));
|
||
city_set_queue(pcity, worklist);
|
||
});
|
||
... | ... | |
return;
|
||
}
|
||
#ifndef FC_QT5_MODE
|
||
fc_assert_ret(id.typeId() == QMetaType::Int);
|
||
#else // FC_QT5_MODE
|
||
fc_assert_ret(id.type() == QVariant::Int);
|
||
#endif // FC_QT5_MODE
|
||
worklist = global_worklist_get(global_worklist_by_id(id.toInt()));
|
||
city_queue_insert_worklist(pcity, selected_row_p + 1, worklist);
|
||
});
|