diff --git a/src/qgsdbsourceselect.cpp b/src/qgsdbsourceselect.cpp index 59719fdd728..f25f5cb9d90 100644 --- a/src/qgsdbsourceselect.cpp +++ b/src/qgsdbsourceselect.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #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); } }