Disables annoying messageboxes when working with TIFF files, Issue 2094

This commit is contained in:
Ingo
2013-12-05 18:17:14 +01:00
parent affc2f5758
commit 370b1064cf

View File

@@ -27,6 +27,7 @@
#include <gtkmm.h> #include <gtkmm.h>
#include <giomm.h> #include <giomm.h>
#include <iostream> #include <iostream>
#include <tiffio.h>
#include "rtwindow.h" #include "rtwindow.h"
#include <cstring> #include <cstring>
#include <cstdlib> #include <cstdlib>
@@ -148,6 +149,9 @@ int main(int argc, char **argv)
return ret; return ret;
} }
if( !options.rtSettings.verbose )
TIFFSetWarningHandler(NULL); // avoid annoying message boxes
#ifndef WIN32 #ifndef WIN32
// Move the old path to the new one if the new does not exist // Move the old path to the new one if the new does not exist
if (safe_file_test(Glib::build_filename(options.rtdir,"cache"), Glib::FILE_TEST_IS_DIR) && !safe_file_test(options.cacheBaseDir, Glib::FILE_TEST_IS_DIR)) if (safe_file_test(Glib::build_filename(options.rtdir,"cache"), Glib::FILE_TEST_IS_DIR) && !safe_file_test(options.cacheBaseDir, Glib::FILE_TEST_IS_DIR))