wp_tray/wp_tray-0.5.3-missingdir.patch
2008-10-01 22:19:31 +00:00

37 lines
1,015 B
Diff

--- wp_tray-0.5.3.orig/src/Wallpapers.cc 2008-08-29 14:31:43.000000000 +0200
+++ wp_tray-0.5.3/src/Wallpapers.cc 2008-08-29 14:31:49.000000000 +0200
@@ -294,6 +294,7 @@
{
fs::directory_iterator itEnd;
+ try {
for(fs::directory_iterator it(_pathCurrent); it != itEnd; ++ it)
{
try
@@ -328,7 +329,8 @@
std::cerr << "Wallpapers::CountEntriesInDirectory() : " << ex.what() << std::endl;
}// end catch
}// end for
-
+ } catch (std::exception& e) {
+ }
return _nFileCount;
}// end Wallpapers::CountDirectoryEntries
@@ -357,6 +359,7 @@
return;
}// end if
+ try {
for(fs::directory_iterator it(_pathCurrent); it != itEnd && _nFileIndex != 0; ++ it)
{
try
@@ -393,6 +396,8 @@
std::cerr << "Wallpapers::GetDirectoryEntryAtIndex() : " << it->path().leaf() << " " << ex.what() << std::endl;
}// end catch
}// end for
+ } catch (std::exception& e) {
+ }
}// end Wallpapers::GetDirectoryEntryAtIndex
//------------------------------------------------------------------------