mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed _on_row_deleted
This commit is contained in:
parent
a438fc5c37
commit
f41e075fc1
@ -2795,10 +2795,8 @@ class PlaylistWindow(Gtk.Box):
|
|||||||
path=path-1
|
path=path-1
|
||||||
if path < self._inserted_path:
|
if path < self._inserted_path:
|
||||||
self._inserted_path=self._inserted_path-1
|
self._inserted_path=self._inserted_path-1
|
||||||
try:
|
|
||||||
self._client.wrapped_call("move", path, self._inserted_path)
|
self._client.wrapped_call("move", path, self._inserted_path)
|
||||||
except:
|
self._inserted_path=None
|
||||||
self._client.wrapped_call("move", path, self._inserted_path-1)
|
|
||||||
|
|
||||||
def _on_row_inserted(self, model, path, treeiter):
|
def _on_row_inserted(self, model, path, treeiter):
|
||||||
self._inserted_path=int(path.to_string())
|
self._inserted_path=int(path.to_string())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user