Changeset View
Changeset View
Standalone View
Standalone View
kexi/plugins/tables/kexitabledesigner_dataview.cpp
Context not available. | |||||
76 | 76 | | |||
---|---|---|---|---|---|
77 | if (tempData()->tableSchemaChangedInPreviousView) { | 77 | if (tempData()->tableSchemaChangedInPreviousView) { | ||
78 | KexiUtils::WaitCursor wait; | 78 | KexiUtils::WaitCursor wait; | ||
79 | KexiDB::Cursor *c | 79 | KexiDB::Connection *conn = KexiMainWindowIface::global()->project()->dbConnection(); | ||
80 | = KexiMainWindowIface::global()->project()->dbConnection()->prepareQuery( | 80 | KexiDB::Cursor *cursor = conn->prepareQuery(*tempData()->table); | ||
81 | *tempData()->table); | 81 | if (!cursor) { | ||
82 | if (!c) | | |||
83 | return false; | 82 | return false; | ||
84 | setData(c); | 83 | } | ||
84 | if (!setData(cursor)) { | ||||
85 | conn->deleteCursor(cursor); | ||||
86 | return false; | ||||
87 | } | ||||
85 | tempData()->tableSchemaChangedInPreviousView = false; | 88 | tempData()->tableSchemaChangedInPreviousView = false; | ||
86 | } | 89 | } | ||
87 | return true; | 90 | return true; | ||
Context not available. |