Diffstat (limited to 'noncore/apps/opie-gutenbrowser/LibraryDialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/LibraryDialog.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp b/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp index 6c246e97..7f21ab3 100644 --- a/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp +++ b/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp @@ -22,3 +22,3 @@ #include <qpe/qpedialog.h> -//#include <opie2///odebug.h> +#include <opie2/odebug.h> @@ -474,4 +474,8 @@ bool LibraryDialog::getEtext(const QStringList &networkList) s_fileName.replace( s_fileName.length() - 3, 3, "gtn"); - // s_fileName.replace( s_fileName.length()-3,3,"etx"); - rename( File_Name.latin1(), s_fileName.latin1()); + if (rename( File_Name.latin1(), s_fileName.latin1()) == 1) { + owarn << "Failed to rename " << File_Name.latin1() << " to " + << s_fileName.latin1() << oendl; + return false; + } + File_Name = s_fileName; @@ -501,3 +505,2 @@ bool LibraryDialog::getEtext(const QStringList &networkList) //odebug << "Writing doclink did not work" << oendl; - } else { } @@ -703,3 +706,2 @@ void LibraryDialog::onButtonSearch() QString searcherStr = searchDlg->get_text(); - int fluff = 0; |