summaryrefslogtreecommitdiff
path: root/core/applets/screenshotapplet/screenshot.cpp
Unidiff
Diffstat (limited to 'core/applets/screenshotapplet/screenshot.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/screenshotapplet/screenshot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/screenshotapplet/screenshot.cpp b/core/applets/screenshotapplet/screenshot.cpp
index 99effa5..5f83539 100644
--- a/core/applets/screenshotapplet/screenshot.cpp
+++ b/core/applets/screenshotapplet/screenshot.cpp
@@ -450,26 +450,26 @@ void ScreenshotControl::performGrab()
450 "Content-length: %3\n" // 3: content length 450 "Content-length: %3\n" // 3: content length
451 "Content-Type: image/png\n" 451 "Content-Type: image/png\n"
452 "Host: %4\n" // 4: scap host 452 "Host: %4\n" // 4: scap host
453 "\n"; 453 "\n";
454 454
455 455
456 header = header.arg( SCAP_model).arg( ::getenv( "USER" ) ).arg( img.numBytes() ).arg( SCAP_hostname ); 456 header = header.arg( SCAP_model).arg( ::getenv( "USER" ) ).arg( img.numBytes() ).arg( SCAP_hostname );
457 qDebug(header); 457 qDebug(header);
458 458
459 if ( !pix.isNull() ) { 459 if ( !pix.isNull() ) {
460 const char *ascii = header.latin1( ); 460 const char *ascii = header.latin1( );
461 uint ascii_len = ::strlen( ascii ); 461 uint ascii_len = ::strlen( ascii );
462 // ::write ( sock, ascii, ascii_len ); 462 ::write ( sock, ascii, ascii_len );
463 // ::write ( sock, img.bits(), img.numBytes() ); 463 ::write ( sock, img.bits(), img.numBytes() );
464 464
465 ok = true; 465 ok = true;
466 } 466 }
467 } 467 }
468 ::close ( sock ); 468 ::close ( sock );
469 } 469 }
470 } 470 }
471 if ( ok ) { 471 if ( ok ) {
472 QMessageBox::information( 0, tr( "Success" ), QString( "<p>%1</p>" ).arg ( tr( "Screenshot was uploaded to %1" )).arg( SCAP_hostname )); 472 QMessageBox::information( 0, tr( "Success" ), QString( "<p>%1</p>" ).arg ( tr( "Screenshot was uploaded to %1" )).arg( SCAP_hostname ));
473 } else { 473 } else {
474 QMessageBox::warning( 0, tr( "Error" ), QString( "<p>%1</p>" ).arg( tr( "Connection to %1 failed." )).arg( SCAP_hostname )); 474 QMessageBox::warning( 0, tr( "Error" ), QString( "<p>%1</p>" ).arg( tr( "Connection to %1 failed." )).arg( SCAP_hostname ));
475 } 475 }