Remove old :wq handler
This commit is contained in:
parent
a283a1bb65
commit
1d66aacb36
@ -745,16 +745,6 @@ class Quitter:
|
|||||||
# segfaults.
|
# segfaults.
|
||||||
QTimer.singleShot(0, functools.partial(qApp.exit, status))
|
QTimer.singleShot(0, functools.partial(qApp.exit, status))
|
||||||
|
|
||||||
@cmdutils.register(instance='quitter', name='wq')
|
|
||||||
@cmdutils.argument('name', completion=miscmodels.session)
|
|
||||||
def save_and_quit(self, name=sessions.default):
|
|
||||||
"""Save open pages and quit.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
name: The name of the session.
|
|
||||||
"""
|
|
||||||
self.shutdown(session=name)
|
|
||||||
|
|
||||||
|
|
||||||
class Application(QApplication):
|
class Application(QApplication):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user