Commit 6dac7e51 authored by Dan Pascu's avatar Dan Pascu

Removed menu entry for buying prepaid credit

parent 371f8c44
...@@ -703,16 +703,6 @@ class ServerToolsWindow(base_class, ui_class): ...@@ -703,16 +703,6 @@ class ServerToolsWindow(base_class, ui_class):
view.load_account_page(account, tab='calls') view.load_account_page(account, tab='calls')
self.show() self.show()
def open_buy_pstn_access_page(self, account):
view = self.tab_widget.currentWidget()
account = account or view.account
if account is None or account.server.settings_url is None:
account = self.account_button.menu().actions()[0].data()
self.account_label.setText(account.id)
self.tab_widget.setTabText(self.tab_widget.currentIndex(), account.id)
view.load_account_page(account, tab='payments')
self.show()
del ui_class, base_class del ui_class, base_class
...@@ -87,7 +87,6 @@ class MainWindow(base_class, ui_class): ...@@ -87,7 +87,6 @@ class MainWindow(base_class, ui_class):
self.sip_server_settings_action.setEnabled(False) self.sip_server_settings_action.setEnabled(False)
self.search_for_people_action.setEnabled(False) self.search_for_people_action.setEnabled(False)
self.history_on_server_action.setEnabled(False) self.history_on_server_action.setEnabled(False)
self.buy_pstn_access_action.setEnabled(False)
self.main_view.setCurrentWidget(self.contacts_panel) self.main_view.setCurrentWidget(self.contacts_panel)
self.contacts_view.setCurrentWidget(self.contact_list_panel) self.contacts_view.setCurrentWidget(self.contact_list_panel)
self.search_view.setCurrentWidget(self.search_list_panel) self.search_view.setCurrentWidget(self.search_list_panel)
...@@ -200,7 +199,6 @@ class MainWindow(base_class, ui_class): ...@@ -200,7 +199,6 @@ class MainWindow(base_class, ui_class):
self.sip_server_settings_action.triggered.connect(self._AH_SIPServerSettings) self.sip_server_settings_action.triggered.connect(self._AH_SIPServerSettings)
self.search_for_people_action.triggered.connect(self._AH_SearchForPeople) self.search_for_people_action.triggered.connect(self._AH_SearchForPeople)
self.history_on_server_action.triggered.connect(self._AH_HistoryOnServer) self.history_on_server_action.triggered.connect(self._AH_HistoryOnServer)
self.buy_pstn_access_action.triggered.connect(self._AH_PurchasePstnAccess)
# Window menu actions # Window menu actions
self.chat_window_action.triggered.connect(self._AH_ChatWindowActionTriggered) self.chat_window_action.triggered.connect(self._AH_ChatWindowActionTriggered)
...@@ -377,11 +375,6 @@ class MainWindow(base_class, ui_class): ...@@ -377,11 +375,6 @@ class MainWindow(base_class, ui_class):
account = account if account is not BonjourAccount() and account.server.settings_url else None account = account if account is not BonjourAccount() and account.server.settings_url else None
self.server_tools_window.open_history_page(account) self.server_tools_window.open_history_page(account)
def _AH_PurchasePstnAccess(self, checked):
account = self.identity.itemData(self.identity.currentIndex()).account
account = account if account is not BonjourAccount() and account.server.settings_url else None
self.server_tools_window.open_buy_pstn_access_page(account)
def _AH_ChatWindowActionTriggered(self, checked): def _AH_ChatWindowActionTriggered(self, checked):
blink = QApplication.instance() blink = QApplication.instance()
blink.chat_window.show() blink.chat_window.show()
...@@ -643,7 +636,6 @@ class MainWindow(base_class, ui_class): ...@@ -643,7 +636,6 @@ class MainWindow(base_class, ui_class):
self.sip_server_settings_action.setEnabled(server_tools_enabled) self.sip_server_settings_action.setEnabled(server_tools_enabled)
self.search_for_people_action.setEnabled(server_tools_enabled) self.search_for_people_action.setEnabled(server_tools_enabled)
self.history_on_server_action.setEnabled(server_tools_enabled) self.history_on_server_action.setEnabled(server_tools_enabled)
self.buy_pstn_access_action.setEnabled(server_tools_enabled)
def _SH_SessionListSelectionChanged(self, selected, deselected): def _SH_SessionListSelectionChanged(self, selected, deselected):
selected_indexes = selected.indexes() selected_indexes = selected.indexes()
......
...@@ -984,7 +984,6 @@ padding: 2px;</string> ...@@ -984,7 +984,6 @@ padding: 2px;</string>
<addaction name="sip_server_settings_action"/> <addaction name="sip_server_settings_action"/>
<addaction name="history_on_server_action"/> <addaction name="history_on_server_action"/>
<addaction name="search_for_people_action"/> <addaction name="search_for_people_action"/>
<addaction name="buy_pstn_access_action"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="google_contacts_action"/> <addaction name="google_contacts_action"/>
</widget> </widget>
...@@ -1243,11 +1242,6 @@ padding: 2px;</string> ...@@ -1243,11 +1242,6 @@ padding: 2px;</string>
<string>Call &amp;history on server</string> <string>Call &amp;history on server</string>
</property> </property>
</action> </action>
<action name="buy_pstn_access_action">
<property name="text">
<string>Buy prepaid credit</string>
</property>
</action>
<action name="join_conference_action"> <action name="join_conference_action">
<property name="text"> <property name="text">
<string>&amp;Join Conference...</string> <string>&amp;Join Conference...</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment