mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-24 22:48:23 -05:00
dbhub: Make URL in progress dialog a bit shorter
This commit is contained in:
@@ -439,10 +439,11 @@ void RemoteDatabase::prepareProgressDialog(QNetworkReply* reply, bool upload, co
|
||||
m_progress->setCancelButtonText(tr("Cancel"));
|
||||
|
||||
// Set dialog text
|
||||
QString url_for_display = QUrl(url).toString(QUrl::PrettyDecoded | QUrl::RemoveQuery);
|
||||
if(upload)
|
||||
m_progress->setLabelText(tr("Uploading remote database to\n%1").arg(url));
|
||||
m_progress->setLabelText(tr("Uploading remote database to\n%1").arg(url_for_display));
|
||||
else
|
||||
m_progress->setLabelText(tr("Downloading remote database from\n%1").arg(url));
|
||||
m_progress->setLabelText(tr("Downloading remote database from\n%1").arg(url_for_display));
|
||||
|
||||
// Show dialog
|
||||
m_progress->show();
|
||||
|
||||
Reference in New Issue
Block a user