-rw-r--r-- | noncore/settings/usermanager/userdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/usermanager/userdialog.cpp b/noncore/settings/usermanager/userdialog.cpp index c6b8a57..719dd1e 100644 --- a/noncore/settings/usermanager/userdialog.cpp +++ b/noncore/settings/usermanager/userdialog.cpp | |||
@@ -329,26 +329,26 @@ void UserDialog::accept() { | |||
329 | if(loginLineEdit->text().isEmpty()) { | 329 | if(loginLineEdit->text().isEmpty()) { |
330 | QMessageBox::information(0,"Empty Login","Please enter a login."); | 330 | QMessageBox::information(0,"Empty Login","Please enter a login."); |
331 | return; | 331 | return; |
332 | } | 332 | } |
333 | QDialog::accept(); | 333 | QDialog::accept(); |
334 | } | 334 | } |
335 | 335 | ||
336 | /** | 336 | /** |
337 | * This slot is called when the usericon is clicked, this loads (should) the iconselector. | 337 | * This slot is called when the usericon is clicked, this loads (should) the iconselector. |
338 | * | 338 | * |
339 | */ | 339 | */ |
340 | void UserDialog::clickedPicture() { | 340 | void UserDialog::clickedPicture() { |
341 | QString filename=OFileDialog::getOpenFileName(OFileSelector::EXTENDED,"/opt/QtPalmtop/pics"); | 341 | QString filename=OFileDialog::getOpenFileName(OFileSelector::EXTENDED,"/opt/QtPalmtop/pics"); |
342 | if(!(filename.isEmpty())) { | 342 | if(!(filename.isEmpty())) { |
343 | userImage.reset(); | 343 | userImage.reset(); |
344 | if(!(userImage.load(filename))) { | 344 | if(!(userImage.load(filename))) { |
345 | QMessageBox::information(0,"Sorry!","Icon selection not yet implemented.\nComming real soon now! (tm)\n"+filename); | 345 | QMessageBox::information(0,"Sorry!","That icon could not be loaded.\nLoading failed on: "+filename); |
346 | } else { | 346 | } else { |
347 | userImage=userImage.smoothScale(48,48); | 347 | userImage=userImage.smoothScale(48,48); |
348 | QPixmap *picture; | 348 | QPixmap *picture; |
349 | picture=(QPixmap *)picturePushButton->pixmap(); | 349 | picture=(QPixmap *)picturePushButton->pixmap(); |
350 | picture->convertFromImage(userImage,0); | 350 | picture->convertFromImage(userImage,0); |
351 | picturePushButton->update(); | 351 | picturePushButton->update(); |
352 | } | 352 | } |
353 | } | 353 | } |
354 | } | 354 | } |