mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Templates: Fix editing on doubleclick
This commit is contained in:
parent
e9edb75442
commit
63cf680908
@ -51,9 +51,7 @@ void TempTreeView::reqFromTemp()
|
||||
|
||||
void TempTreeView::showPki(pki_base *pki) const
|
||||
{
|
||||
pki_temp *t = dynamic_cast<pki_temp *>(pki);
|
||||
if (t && basemodel)
|
||||
temps()->alterTemp(t);
|
||||
alterTemp(dynamic_cast<pki_temp *>(pki));
|
||||
}
|
||||
|
||||
bool TempTreeView::runTempDlg(pki_temp *temp)
|
||||
@ -99,10 +97,7 @@ void TempTreeView::newItem()
|
||||
|
||||
bool TempTreeView::alterTemp(pki_temp *temp)
|
||||
{
|
||||
XSqlQuery q;
|
||||
QSqlError e;
|
||||
|
||||
if (!basemodel)
|
||||
if (!basemodel || !temp)
|
||||
return false;
|
||||
|
||||
if (!runTempDlg(temp))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user