diff --git a/main.cpp b/main.cpp index 33c5118..50bb5d3 100644 --- a/main.cpp +++ b/main.cpp @@ -2,6 +2,7 @@ #include #include "GUI.h" #include "DRIQuery.h" +#include int main(int argc, char *argv[]) { /* Start the GUI work */ @@ -13,6 +14,9 @@ int main(int argc, char *argv[]) { if (!check.canHandle()) { std::cerr << "Not all screens have open source drivers" << std::endl; //pop up error window here + Gtk::MessageDialog errorDialog = Gtk::MessageDialog("Closed source driver(s) detected!", + false, Gtk::MESSAGE_ERROR); + errorDialog.set_secondary_text("Currently adriconf cannot handle closed source drivers."); return 0; }