From kde-commits Wed Aug 25 19:49:51 2004 From: Jaroslaw Staniek Date: Wed, 25 Aug 2004 19:49:51 +0000 To: kde-commits Subject: koffice/kexi/plugins/queries Message-Id: <20040825194951.7252023DB () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109346340023601 CVS commit by staniek: Query designer - more verbose errors M +1 -1 kexiquerydesignerguieditor.cpp 1.83 M +3 -2 kexiqueryview.cpp 1.12 M +2 -1 kexiqueryview.h 1.5 --- koffice/kexi/plugins/queries/kexiquerydesignerguieditor.cpp #1.82:1.83 @@ -437,5 +437,5 @@ KexiQueryDesignerGuiEditor::afterSwitchF if (!loadLayout()) { //err msg - parentDialog()->setStatus(i18n("Query definition loading failed."), i18n("Query data may be corrupted.")); + parentDialog()->setStatus(parentDialog()->mainWin()->project()->dbConnection(), i18n("Query definition loading failed."), i18n("Query data may be corrupted.")); return false; } --- koffice/kexi/plugins/queries/kexiqueryview.cpp #1.11:1.12 @@ -1,4 +1,5 @@ /* This file is part of the KDE project Copyright (C) 2004 Lucijan Busch + Copyright (C) 2004 Jaroslaw Staniek This program is free software; you can redistribute it and/or @@ -43,5 +44,5 @@ bool KexiQueryView::executeQuery(KexiDB: KexiDB::Cursor *rec = mainWin()->project()->dbConnection()->executeQuery(*query); if (!rec) { - parentDialog()->setStatus(i18n("Query executing failed."), parentDialog()->mainWin()->project()->dbConnection()->errorMsg()); + parentDialog()->setStatus(parentDialog()->mainWin()->project()->dbConnection(), i18n("Query executing failed.")); //todo: also provide server result and sql statement return false; --- koffice/kexi/plugins/queries/kexiqueryview.h #1.4:1.5 @@ -1,4 +1,5 @@ /* This file is part of the KDE project Copyright (C) 2004 Lucijan Busch + Copyright (C) 2004 Jaroslaw Staniek This program is free software; you can redistribute it and/or