提交 ccff7407 编写于 作者: C cmerchant 提交者: Kentaro Wada

Replaced long line of code with for human friendly if/else statement. No functionality changes

上级 4a5f282e
......@@ -212,4 +212,7 @@ class LabelDialog(QtWidgets.QDialog):
self.edit.setFocus(QtCore.Qt.PopupFocusReason)
if move:
self.move(QtGui.QCursor.pos())
return (self.edit.text(), self.getFlags() if self.flags else None) if self.exec_() else (None, None)
if self._exec():
return self.edit.text(), self.getFlags() if self.flags else None
else:
return None, None
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册