dbhub: Remove remote menu, add push button to remote dock

This commit removes the File -> Remote menu entirely. The only menu item
that was left was the Save to Remote item which is replaces by a button
in the remote dock.

The button is only enabled when a database file is opened and the user
has logged in using a certificate.

Clicking the button opens the same dialog and performs the same actions
as before. The only difference is that we don't use the first client
certificate - no matter which one it is - but instead use the client
certificate that was used for logging in.
This commit is contained in:
Martin Kleusberg
2017-08-03 17:35:36 +02:00
parent dfa9ad7c03
commit d14fb1fbb1
9 changed files with 57 additions and 27 deletions

View File

@@ -381,7 +381,7 @@ void RemoteDatabase::push(const QString& filename, const QString& url, const QSt
QByteArray file_data = file.readAll();
file.close();
// Fetch database and save pending reply. Note that we're only supporting one active download here at the moment.
// Fetch database and save pending reply. Note that we're only supporting one active download or upload here at the moment.
m_currentReply = m_manager->put(request, file_data);
m_currentReply->setProperty("type", RequestTypePush);