GUI restable: avoid clearing the detail display on double-click
This commit is contained in:
parent
642ea759bc
commit
1389787201
@ -864,9 +864,13 @@ void ResTable::onDoubleClick(const QModelIndex& index)
|
|||||||
return;
|
return;
|
||||||
Rcl::Doc doc;
|
Rcl::Doc doc;
|
||||||
if (m_model->getDocSource()->getDoc(index.row(), doc)) {
|
if (m_model->getDocSource()->getDoc(index.row(), doc)) {
|
||||||
m_detail->clear();
|
if (m_detaildocnum != index.row()) {
|
||||||
m_detaildocnum = index.row();
|
m_detail->clear();
|
||||||
m_detaildoc = doc;
|
m_detaildocnum = index.row();
|
||||||
|
m_pager->displayDoc(theconfig, index.row(), m_detaildoc,
|
||||||
|
m_model->m_hdata);
|
||||||
|
}
|
||||||
|
m_detaildoc = doc;
|
||||||
if (m_detaildocnum >= 0)
|
if (m_detaildocnum >= 0)
|
||||||
emit editRequested(m_detaildoc);
|
emit editRequested(m_detaildoc);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user