]> Dogcows Code - chaz/yoink/blobdiff - src/moof/modal_dialog.hh
mesh and other random adjustments
[chaz/yoink] / src / moof / modal_dialog.hh
index c5139f27e06bb7dd95ae9c9a2915adcd5a897180..e1d773989bebcf41c8912c0004b05221eeb686ac 100644 (file)
@@ -18,7 +18,7 @@
  * supported, but only one can be used as determined at build time.
  */
 
-#include "../config.h"
+#include "config.h"
 
 #include <string>
 
@@ -140,8 +140,8 @@ struct modal_dialog
                                                                                                 "%s", text2.c_str());
                gtk_window_set_title(GTK_WINDOW(dialog), title.c_str());
 
-               std::string icon_path(PACKAGE".png");
-               if (resource::find(icon_path))
+               std::string icon_path = resource::find_file(PACKAGE".png");
+               if (!icon_path.empty())
                {
                        GdkPixbuf* iconPixbuf = gdk_pixbuf_new_from_file(icon_path.c_str(),
                                                                                                                         NULL);
@@ -180,8 +180,8 @@ struct modal_dialog
                dialog.setInformativeText(text2.c_str());
                dialog.setStandardButtons(QMessageBox::Close);
 
-               std::string icon_path(PACKAGE".png");
-               if (resource::find(icon_path))
+               std::string icon_path = resource::find_file(PACKAGE".png");
+               if (!icon_path.empty())
                {
                        QIcon icon(icon_path.c_str());
                        dialog.setWindowIcon(icon);
This page took 0.018978 seconds and 4 git commands to generate.