[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi/plugins/queries
From: Jaroslaw Staniek <js () iidea ! pl>
Date: 2006-07-31 13:50:56
Message-ID: 1154353856.826634.3081.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 568203 by staniek:
Query Designer
- possible crash fixed when new design is saved in the data view:
only rebuild schema if it has not been rebuilt previously
1.0/2.0: ported
M +8 -5 kexiquerydesignerguieditor.cpp
--- trunk/koffice/kexi/plugins/queries/kexiquerydesignerguieditor.cpp #568202:568203
@@ -592,12 +592,15 @@
return 0;
}
QString errMsg;
- if (!buildSchema(&errMsg)) {
- KMessageBox::sorry(this, errMsg);
- cancel = true;
- return 0;
+ KexiQueryPart::TempData * temp = tempData();
+ if (!(viewMode()==Kexi::DesignViewMode && !temp->queryChangedInPreviousView)) {
+ //only rebuild schema if it has not been rebuilt previously
+ if (!buildSchema(&errMsg)) {
+ KMessageBox::sorry(this, errMsg);
+ cancel = true;
+ return 0;
+ }
}
- KexiQueryPart::TempData * temp = tempData();
(KexiDB::SchemaData&)*temp->query() = sdata; //copy main attributes
bool ok = m_mainWin->project()->dbConnection()->storeObjectSchemaData( \
*temp->query(), true /*newObject*/ );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic