[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-10-17 20:01:49
Message-ID: 1161115309.196076.22256.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 596526 by staniek:

Query Designer
- refresh design view after a sequence of switches: 
   text view -> data view -> design view
2.0: merged



 M  +7 -4      kexiquerydesignerguieditor.cpp  


--- trunk/koffice/kexi/plugins/queries/kexiquerydesignerguieditor.cpp #596525:596526
@@ -630,7 +630,9 @@
 			//todo: load global query properties
 		}
 	}
-	else if (mode==Kexi::TextViewMode) {
+	else if (mode==Kexi::TextViewMode || mode==Kexi::DataViewMode) {
+		// Switch from text or data view. In the second case, the design could be changed as well
+		// because there could be changes made in the text view before switching to the data view.
 		if (tempData()->queryChangedInPreviousView) {
 			//previous view changed query data
 			//-clear and regenerate GUI items
@@ -646,9 +648,10 @@
 				d->relations->clear();
 			}
 		}
-		//todo: load global query properties
+//! @todo load global query properties
 	}
-	else if (mode==Kexi::DataViewMode) {
+	
+	if (mode==Kexi::DataViewMode) {
 		//this is just a SWITCH from data view
 		//set cursor if needed:
 		if (d->dataTable->dataAwareObject()->currentRow()<0
@@ -1546,7 +1549,7 @@
 			result->success = false;
 			result->allowToDiscardChanges = true;
 			result->column = colnum;
-			result->msg = futureI18n("Could not set sorting for multiple columns (%1)")
+			result->msg = i18n("Could not set sorting for multiple columns (%1)")
 				.arg(table=="*" ? table : (table+".*"));
 		}
 	}
[prev in list] [next in list] [prev in thread] [next in thread] 

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