GUI: make GUI_REF_SETROWCOUNT synchronous
This commit is contained in:
parent
537c4e42d5
commit
b4a03a8009
|
|
@ -169,6 +169,7 @@ void ReferenceView::setRowCount(dsint count)
|
|||
searchSelectionChanged(0);
|
||||
emit mCountTotalLabel->setText(QString("%1").arg(count));
|
||||
StdSearchListView::setRowCount(count);
|
||||
Bridge::getBridge()->setResult(BridgeResult::RefSetRowCount, 1);
|
||||
}
|
||||
|
||||
void ReferenceView::setSingleSelection(int index, bool scroll)
|
||||
|
|
|
|||
|
|
@ -217,8 +217,15 @@ void* Bridge::processMessage(GUIMSG type, void* param1, void* param2)
|
|||
break;
|
||||
|
||||
case GUI_REF_SETROWCOUNT:
|
||||
emit referenceSetRowCount((dsint)param1);
|
||||
break;
|
||||
{
|
||||
if(referenceManager->currentReferenceView())
|
||||
{
|
||||
BridgeResult result(BridgeResult::RefSetRowCount);
|
||||
emit referenceSetRowCount((dsint)param1);
|
||||
result.Wait();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GUI_REF_GETROWCOUNT:
|
||||
if(referenceManager->currentReferenceView())
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ public:
|
|||
ScriptAdd,
|
||||
ScriptMessage,
|
||||
RefInitialize,
|
||||
RefSetRowCount,
|
||||
MenuAddToList,
|
||||
MenuAdd,
|
||||
MenuAddEntry,
|
||||
|
|
|
|||
Loading…
Reference in New Issue