Skip to content

Commit 9da7e0e

Browse files
author
Dimitar Tasev
committed
Remove Debug Me action
1 parent 2b4eb14 commit 9da7e0e

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

mantidimaging/gui/ui/main_window.ui

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
</property>
6161
<addaction name="actionOnlineDocumentation"/>
6262
<addaction name="actionAbout"/>
63-
<addaction name="actionDebug_Me"/>
6463
</widget>
6564
<widget class="QMenu" name="menuImage">
6665
<property name="enabled">
@@ -160,14 +159,6 @@
160159
<string>Ctrl+Shift+F</string>
161160
</property>
162161
</action>
163-
<action name="actionDebug_Me">
164-
<property name="text">
165-
<string>Debug Me</string>
166-
</property>
167-
<property name="shortcut">
168-
<string>Ctrl+D</string>
169-
</property>
170-
</action>
171162
<action name="actionCompare_Images">
172163
<property name="text">
173164
<string>Compare Images</string>

mantidimaging/gui/windows/main/view.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from PyQt5 import QtCore, QtGui, QtWidgets
1111
from PyQt5.QtCore import pyqtSignal
1212
from PyQt5.QtGui import QIcon
13-
from PyQt5.QtWidgets import QAction, QDialog, QInputDialog, QLabel, QMessageBox, QMenu, QDockWidget, QFileDialog
13+
from PyQt5.QtWidgets import QAction, QDialog, QLabel, QMessageBox, QMenu, QDockWidget, QFileDialog
1414

1515
from mantidimaging.gui.utility.qt_helpers import populate_menu
1616
from mantidimaging.gui.widgets.stack_selector_dialog.stack_selector_dialog import StackSelectorDialog
@@ -60,8 +60,6 @@ class MainWindowView(BaseMainWindowView):
6060
load_dialogue: Optional[MWLoadDialog] = None
6161
save_dialogue: Optional[MWSaveDialog] = None
6262

63-
actionDebug_Me: QAction
64-
6563
def __init__(self):
6664
super(MainWindowView, self).__init__(None, "gui/ui/main_window.ui")
6765

@@ -121,8 +119,6 @@ def setup_shortcuts(self):
121119

122120
self.active_stacks_changed.connect(self.update_shortcuts)
123121

124-
self.actionDebug_Me.triggered.connect(self.attach_debugger)
125-
126122
def populate_image_menu(self):
127123
self.menuImage.clear()
128124
current_stack = self.current_showing_stack()
@@ -341,12 +337,6 @@ def uncaught_exception(self, user_error_msg, log_error_msg):
341337
QtWidgets.QMessageBox.critical(self, self.UNCAUGHT_EXCEPTION, f"{user_error_msg}")
342338
getLogger(__name__).error(log_error_msg)
343339

344-
def attach_debugger(self):
345-
port, accepted = QInputDialog.getInt(self, "Debug port", "Get PyCharm debug listen port", value=25252)
346-
if accepted:
347-
import pydevd_pycharm
348-
pydevd_pycharm.settrace('ndlt1104.isis.cclrc.ac.uk', port=port, stdoutToServer=True, stderrToServer=True)
349-
350340
def show_stack_select_dialog(self):
351341
dialog = MultipleStackSelect(self)
352342
if dialog.exec() == QDialog.Accepted:

0 commit comments

Comments
 (0)