diff --git a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.cpp b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.cpp index 5823e6717..5d5461d79 100644 --- a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.cpp +++ b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.cpp @@ -19,7 +19,6 @@ *******************************************************************************/ #include -#include #include "AlbumCreateDialog.h" #include "ui_AlbumCreateDialog.h" @@ -38,7 +37,7 @@ AlbumCreateDialog::AlbumCreateDialog(TokenQueue *photoQueue, RsPhoto *rs_photo, #if QT_VERSION >= 0x040700 - ui->lineEdit_Title->setPlaceholderText(tr("Untitle Album")); + ui->lineEdit_Title_2->setPlaceholderText(tr("Untitle Album")); ui->lineEdit_Caption_2->setPlaceholderText(tr("Say something about this album...")); //ui->textEdit_Description->setPlaceholderText(tr("Say something about this album...")) ; ui->lineEdit_Where->setPlaceholderText(tr("Where were these taken?")); @@ -56,8 +55,7 @@ AlbumCreateDialog::AlbumCreateDialog(TokenQueue *photoQueue, RsPhoto *rs_photo, mPhotoDrop = ui->scrollAreaWidgetContents; mPhotoDrop->setPhotoItemHolder(this); - /* fill in the available OwnIds for sharing */ - ui->IdChooser->loadIds(IDCHOOSER_ID_REQUIRED, RsGxsId()); + } AlbumCreateDialog::~AlbumCreateDialog() @@ -74,30 +72,12 @@ void AlbumCreateDialog::publishAlbum() // get fields for album to publish, publish and then exit dialog RsPhotoAlbum album; - RsGxsId authorId; - switch (ui->IdChooser->getChosenId(authorId)) { - case GxsIdChooser::KnowId: - case GxsIdChooser::UnKnowId: - break; - case GxsIdChooser::NoId: - case GxsIdChooser::None: - default: - std::cerr << "AlbumCreateDialog::publishAlbum() ERROR GETTING AuthorId!, Post Failed"; - std::cerr << std::endl; - - QMessageBox::warning(this, tr("RetroShare"),tr("Please create or choose a Signing Id first"), QMessageBox::Ok, QMessageBox::Ok); - - return; - } - - album.mMeta.mGroupName = ui->lineEdit_Title->text().toStdString(); - album.mCategory = ui->comboBox_Category->currentText().toStdString(); album.mCaption = ui->lineEdit_Caption_2->text().toStdString(); album.mPhotographer = ui->lineEdit_Photographer->text().toStdString(); + album.mMeta.mGroupName = ui->lineEdit_Title_2->text().toStdString(); album.mDescription = ui->textEdit_Description->toPlainText().toStdString(); album.mWhere = ui->lineEdit_Where->text().toStdString(); album.mPhotographer = ui->lineEdit_Photographer->text().toStdString(); - album.mMeta.mAuthorId = authorId; getAlbumThumbnail(album.mThumbnail); diff --git a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui index c471062bd..af5729fc9 100644 --- a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui +++ b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui @@ -17,16 +17,7 @@ true - - 0 - - - 0 - - - 0 - - + 0 @@ -55,16 +46,7 @@ QFrame::NoFrame - - 0 - - - 0 - - - 0 - - + 0 @@ -72,16 +54,7 @@ - - 3 - - - 3 - - - 3 - - + 3 @@ -92,7 +65,7 @@ - + @@ -137,7 +110,7 @@ border-radius: 10px; - + Animals @@ -381,13 +354,18 @@ border-radius: 10px; - + 0 0 + + + Publish with Identity + + @@ -453,8 +431,8 @@ p, li { white-space: pre-wrap; } 0 0 - 61 - 18 + 621 + 458 @@ -473,16 +451,7 @@ p, li { white-space: pre-wrap; } - - 9 - - - 9 - - - 9 - - + 9 @@ -544,11 +513,6 @@ p, li { white-space: pre-wrap; }
gui/PhotoShare/PhotoDrop.h
1 - - GxsIdChooser - QComboBox -
gui/gxs/GxsIdChooser.h
-