mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-25 01:19:20 -04:00
made Options tab in Profiles Details window be disabled when the profile is not a friend
This commit is contained in:
parent
a2a55b06ce
commit
2bd3fbf977
@ -45,6 +45,8 @@
|
|||||||
#include "util/DateTime.h"
|
#include "util/DateTime.h"
|
||||||
#include "util/misc.h"
|
#include "util/misc.h"
|
||||||
|
|
||||||
|
#define FRIEND_OPTIONS_TAB_INDEX 2
|
||||||
|
|
||||||
QMap<RsPgpId, PGPKeyDialog*> PGPKeyDialog::instances_pgp;
|
QMap<RsPgpId, PGPKeyDialog*> PGPKeyDialog::instances_pgp;
|
||||||
|
|
||||||
PGPKeyDialog *PGPKeyDialog::instance(const RsPgpId& pgp_id)
|
PGPKeyDialog *PGPKeyDialog::instance(const RsPgpId& pgp_id)
|
||||||
@ -199,11 +201,13 @@ void PGPKeyDialog::load()
|
|||||||
{
|
{
|
||||||
ui.make_friend_button->hide();
|
ui.make_friend_button->hide();
|
||||||
ui.denyFriendButton->show();
|
ui.denyFriendButton->show();
|
||||||
|
ui.stabWidget->setTabEnabled(FRIEND_OPTIONS_TAB_INDEX,true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui.make_friend_button->show();
|
ui.make_friend_button->show();
|
||||||
ui.denyFriendButton->hide();
|
ui.denyFriendButton->hide();
|
||||||
|
ui.stabWidget->setTabEnabled(FRIEND_OPTIONS_TAB_INDEX,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//web of trust
|
//web of trust
|
||||||
|
@ -393,7 +393,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="option_Tab">
|
<widget class="QWidget" name="option_Tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Options</string>
|
<string>Friend options</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="option_Tab_VL">
|
<layout class="QVBoxLayout" name="option_Tab_VL">
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user