[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi/plugins/queries
From: Adam Pigg <adam () piggz ! co ! uk>
Date: 2009-09-06 15:11:53
Message-ID: 1252249913.368761.29901.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1020547 by piggz:
Dont crash if set ptr is null
M +4 -2 kexiquerydesignerguieditor.cpp
--- trunk/koffice/kexi/plugins/queries/kexiquerydesignerguieditor.cpp #1020546:1020547
@@ -1592,10 +1592,12 @@
KexiDB::BinaryExpr be(KexiDBExpr_Relational, 0, token, 0);
tokenStr = be.tokenToString() + " ";
}
- (*set)["criteria"] = tokenStr + e->toString(); //print it prettier
+ if (set) {
+ (*set)["criteria"] = tokenStr + e->toString(); //print it prettier
+ }
//this is just checking: destroy expr. object
delete e;
- } else if (str.isEmpty()) {
+ } else if (set && str.isEmpty()) {
(*set)["criteria"] = QVariant(); //clear it
}
setDirty(true);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic