Changeset View
Changeset View
Standalone View
Standalone View
kexi/core/kexiproject.cpp
Context not available. | |||||
861 | return 0; | 861 | return 0; | ||
---|---|---|---|---|---|
862 | KexiWindow *window = part->openInstance(parent, item, viewMode, staticObjectArgs); | 862 | KexiWindow *window = part->openInstance(parent, item, viewMode, staticObjectArgs); | ||
863 | if (!window) { | 863 | if (!window) { | ||
864 | if (part->lastOperationStatus().error()) | 864 | if (part->lastOperationStatus().error()) { | ||
865 | m_sql = part->lastOperationStatus().errorSql; // pass proper SQL error | ||||
865 | setError(i18n("Opening object \"%1\" failed.", item.name()) + "<br>" | 866 | setError(i18n("Opening object \"%1\" failed.", item.name()) + "<br>" | ||
866 | + part->lastOperationStatus().message, | 867 | + part->lastOperationStatus().message, | ||
867 | part->lastOperationStatus().description); | 868 | part->lastOperationStatus().description); | ||
869 | } | ||||
868 | return 0; | 870 | return 0; | ||
869 | } | 871 | } | ||
870 | return window; | 872 | return window; | ||
Context not available. |