[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/plugins/queries
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2006-08-05 15:06:38
Message-ID: 1154790398.916185.13707.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 570037 by sebsauer:

port r570036;
Fix crash;
1) create new query, 2) add some tables in designview and don't switch, 3) close \
query and if asked for save, try to save it, 4) crash



 M  +2 -0      kexiquerydesignerguieditor.cpp  


--- trunk/koffice/kexi/plugins/queries/kexiquerydesignerguieditor.cpp #570036:570037
@@ -593,6 +593,8 @@
 	}
 	QString errMsg;
 	KexiQueryPart::TempData * temp = tempData();
+	if(! temp->query())
+		buildSchema();
 	if (!(viewMode()==Kexi::DesignViewMode && !temp->queryChangedInPreviousView)) {
 		//only rebuild schema if it has not been rebuilt previously
 		if (!buildSchema(&errMsg)) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic