Remove uneeded Facebook album setting

This now is chosen directly from the popup box that appears when you try
to send a picture to facebook.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-12-28 21:46:42 -02:00 committed by Dirk Hohndel
parent b84edad597
commit a65816db7d
3 changed files with 7 additions and 24 deletions

View file

@ -38,8 +38,6 @@ PreferencesDialog::PreferencesDialog(QWidget *parent, Qt::WindowFlags f) : QDial
} else {
ui.facebookWebView->setUrl(fb->connectUrl());
}
fb->setDesiredAlbumName(ui.facebookAlbum->text());
connect(ui.facebookAlbum, &QLineEdit::textChanged, fb, &FacebookManager::setDesiredAlbumName);
connect(ui.facebookWebView, &QWebView::urlChanged, fb, &FacebookManager::tryLogin);
connect(fb, &FacebookManager::justLoggedIn, this, &PreferencesDialog::facebookLoggedIn);
connect(ui.btnDisconnectFacebook, &QPushButton::clicked, fb, &FacebookManager::logout);

View file

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>924</width>
<height>735</height>
<height>742</height>
</rect>
</property>
<property name="windowTitle">
@ -987,20 +987,6 @@
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<layout class="QHBoxLayout" name="connectedLayout">
<item>
<widget class="QLabel" name="label_26">
<property name="text">
<string>Facebook Album for Subsurface Uploads</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="facebookAlbum">
<property name="text">
<string>subsurface</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
@ -1048,7 +1034,7 @@
<customwidget>
<class>QWebView</class>
<extends>QWidget</extends>
<header>QtWebKit/QWebView</header>
<header>QtWebKitWidgets/QWebView</header>
</customwidget>
</customwidgets>
<resources/>
@ -1391,12 +1377,12 @@
</connection>
</connections>
<buttongroups>
<buttongroup name="verticalSpeed"/>
<buttongroup name="buttonGroup_2"/>
<buttongroup name="buttonGroup_3"/>
<buttongroup name="buttonGroup_4"/>
<buttongroup name="buttonGroup_5"/>
<buttongroup name="buttonGroup_6"/>
<buttongroup name="buttonGroup"/>
<buttongroup name="buttonGroup_6"/>
<buttongroup name="buttonGroup_5"/>
<buttongroup name="buttonGroup_2"/>
<buttongroup name="buttonGroup_4"/>
<buttongroup name="verticalSpeed"/>
</buttongroups>
</ui>

View file

@ -196,7 +196,6 @@ void FacebookManager::sendDive()
if (dialog.exec() != QDialog::Accepted)
return;
setDesiredAlbumName(dialog.album());
requestAlbumId();