mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-10 13:48:32 -06:00
dbhub: Fix saving latest commit to file
Fix the "Save Revision to File" action in the context menu of the commits list so it also allows downloading the latest commit. See issue #2349.
This commit is contained in:
@@ -245,7 +245,7 @@ void RemoteDock::fetchDatabase(QString url_string, RemoteNetwork::RequestType re
|
||||
|
||||
// There is a chance that we've already cloned that database. So check for that first
|
||||
QString exists = remoteDatabase.localExists(url, remoteModel->currentClientCertificate(), QUrlQuery(url).queryItemValue("branch").toStdString());
|
||||
if(!exists.isEmpty())
|
||||
if(!exists.isEmpty() && request_type == RemoteNetwork::RequestTypeDatabase)
|
||||
{
|
||||
// Database has already been cloned! So open the local file instead of fetching the one from the
|
||||
// server again.
|
||||
|
||||
Reference in New Issue
Block a user