Disables annoying messageboxes when working with TIFF files, Issue 2094
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <gtkmm.h>
|
||||
#include <giomm.h>
|
||||
#include <iostream>
|
||||
#include <tiffio.h>
|
||||
#include "rtwindow.h"
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
@@ -148,6 +149,9 @@ int main(int argc, char **argv)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if( !options.rtSettings.verbose )
|
||||
TIFFSetWarningHandler(NULL); // avoid annoying message boxes
|
||||
|
||||
#ifndef WIN32
|
||||
// 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))
|
||||
|
Reference in New Issue
Block a user