Cleanups and also some speedups for RT 5.9, to be continued
This commit is contained in:
@@ -2446,6 +2446,8 @@ bool FileCatalog::handleShortcutKey (GdkEventKey* event)
|
||||
case GDK_KEY_underscore:
|
||||
zoomOut();
|
||||
return true;
|
||||
default: // do nothing, avoids a cppcheck false positive
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -440,7 +440,7 @@ int main (int argc, char **argv)
|
||||
|
||||
if (argc > 1) {
|
||||
if (!remote && !Glib::file_test (argv1, Glib::FILE_TEST_EXISTS ) && !Glib::file_test (argv1, Glib::FILE_TEST_IS_DIR)) {
|
||||
bool stdoutRedirecttoConsole = (GetFileType (GetStdHandle (STD_OUTPUT_HANDLE)) == 0x0000);
|
||||
const bool stdoutRedirecttoConsole = (GetFileType (GetStdHandle (STD_OUTPUT_HANDLE)) == 0x0000);
|
||||
// open console, if stdout is invalid
|
||||
if (stdoutRedirecttoConsole) {
|
||||
// check if parameter -w was passed.
|
||||
@@ -472,10 +472,9 @@ int main (int argc, char **argv)
|
||||
cursorInfo.bVisible = false;
|
||||
SetConsoleCursorInfo ( GetStdHandle ( STD_OUTPUT_HANDLE ), &cursorInfo );
|
||||
|
||||
if (stdoutRedirecttoConsole) { // if stdout is Redirect to console, we also redirect stderr to console
|
||||
freopen ( "CON", "w", stdout ) ;
|
||||
freopen ( "CON", "w", stderr ) ;
|
||||
}
|
||||
// we also redirect stderr to console
|
||||
freopen ( "CON", "w", stdout ) ;
|
||||
freopen ( "CON", "w", stderr ) ;
|
||||
|
||||
freopen ( "CON", "r", stdin ) ;
|
||||
|
||||
|
||||
@@ -873,7 +873,7 @@ void Thumbnail::_loadThumbnail(bool firstTrial)
|
||||
if (!succ && firstTrial) {
|
||||
_generateThumbnailImage ();
|
||||
|
||||
if (cfs.supported && firstTrial) {
|
||||
if (cfs.supported) {
|
||||
_loadThumbnail (false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user