Export drin noch nicht komplett

Dieser Commit ist enthalten in:
Claude Project Manager
2025-11-10 03:43:02 +01:00
Ursprung 14eefa18f6
Commit 88dc8eea5e
8 geänderte Dateien mit 1473 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -218,7 +218,30 @@ class AccountsTab(QWidget):
def on_export_clicked(self):
"""Wird aufgerufen, wenn der Exportieren-Button geklickt wird."""
self.export_requested.emit()
# Prüfen ob ein Account ausgewählt ist
selected_rows = self.accounts_table.selectionModel().selectedRows()
if not selected_rows:
title = "Kein Konto ausgewählt"
text = "Bitte wählen Sie ein Konto zum Exportieren aus."
if self.language_manager:
title = self.language_manager.get_text(
"accounts_tab.no_selection_title", title
)
text = self.language_manager.get_text(
"accounts_tab.no_export_selection_text", text
)
from views.widgets.modern_message_box import show_warning
show_warning(self, title, text)
return
# Account-ID holen
row = selected_rows[0].row()
account_id = int(self.accounts_table.item(row, 0).text())
# ProfileExportController verwenden
from controllers.profile_export_controller import ProfileExportController
export_controller = ProfileExportController(self.db_manager)
export_controller.export_account(self, account_id)
def update_session_status(self, account_id: str, status: dict):
"""