author | mickeyl <mickeyl> | 2003-12-15 15:16:26 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-12-15 15:16:26 (UTC) |
commit | 4acec249d48e57c911fc2544d92785b86d5f08d0 (patch) (side-by-side diff) | |
tree | b1613124a5093d420cdbfba4a46b9edbf8db1712 /noncore/net/wellenreiter/gui/mainwindow.cpp | |
parent | 7fa223e6851a0436d7ac010117d9d31fd0444cbd (diff) | |
download | opie-4acec249d48e57c911fc2544d92785b86d5f08d0.zip opie-4acec249d48e57c911fc2544d92785b86d5f08d0.tar.gz opie-4acec249d48e57c911fc2544d92785b86d5f08d0.tar.bz2 |
use current dumpname, not always /var/log/...
Diffstat (limited to 'noncore/net/wellenreiter/gui/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/mainwindow.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp index bb46dd7..ca9851c 100644 --- a/noncore/net/wellenreiter/gui/mainwindow.cpp +++ b/noncore/net/wellenreiter/gui/mainwindow.cpp @@ -424,5 +424,7 @@ void WellenreiterMainWindow::uploadSession() { - if ( !QFile::exists( "/var/log/dump.wellenreiter" ) ) + + + if ( !QFile::exists( mw->captureFileName() ) ) { - QMessageBox::warning( 0, tr( "Error" ), tr( "<p>Logfile doesn't exist</p>") ); + QMessageBox::warning( 0, tr( "Error" ), tr( "<p>Logfile '%1' doesn't exist</p>").arg( mw->captureFileName() ) ); return; @@ -430,6 +432,6 @@ void WellenreiterMainWindow::uploadSession() - QFile f( "/var/log/dump.wellenreiter" ); + QFile f( mw->captureFileName() ); if ( !f.open( IO_ReadOnly ) ) { - QMessageBox::warning( 0, tr( "Error" ), tr( "<p>Can't open Logfile</p>") ); + QMessageBox::warning( 0, tr( "Error" ), tr( "<p>Can't open Logfile '%1'</p>").arg( mw->captureFileName() ) ); return; @@ -483,3 +485,3 @@ void WellenreiterMainWindow::uploadSession() "-----------------------------97267758015830030481215568065\r\n" - "Content-Disposition: form-data; name=\"upfile\"; filename=\"/var/log/dump.wellenreiter\"\r\n" + "Content-Disposition: form-data; name=\"upfile\"; filename=\"%4\"\r\n" "Content-Type: application/octet-stream\r\n" @@ -493,2 +495,3 @@ void WellenreiterMainWindow::uploadSession() content = content.arg( comments->text().isEmpty() ? QString( "Anonymous Wellenreiter II Comments" ) : comments->text() ); + content = content.arg( mw->captureFileName() ); |