error checking added

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@128 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2002-10-11 05:11:01 +00:00
parent c9f97518d8
commit a3877c4748

View File

@ -21,6 +21,7 @@
#include <qlistbox.h>
#include <qstringlist.h>
#include <qcombobox.h>
#include <qmessagebox.h>
#include "xpm/point_layer.xpm"
#include "xpm/line_layer.xpm"
#include "xpm/polygon_layer.xpm"
@ -123,7 +124,7 @@ void QgsDbSourceSelect::dbConnect()
qDebug(pd->ErrorMessage());
}
} else {
qDebug("Connection failed");
QMessageBox::warning(this,"Connection failed", "Connection to " + database + " on " + host);
}
}