dbhub: Open the user's directory by default

When 'logging in' or refreshing the view, look for the user's directory
and open it by default.
This commit is contained in:
Martin Kleusberg
2017-08-13 15:12:50 +02:00
parent 38caf867bc
commit bbbadba732
4 changed files with 30 additions and 0 deletions

View File

@@ -86,6 +86,10 @@ public:
// Returns the current client certificate
const QString& currentClientCertificate() const;
signals:
// This signal is emitted whenever a directory listing has been received and parsed
void directoryListingParsed(QModelIndex parent);
private slots:
// This is called whenever a network reply containing a directory listing arrives. json contains the reply data, userdata
// contains some custom data passed to the request. In this case we expect this to be the model index of the parent tree item.