mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Final updates for 0.9.7 release
This commit is contained in:
parent
67155b16d1
commit
23e61ceccf
Binary file not shown.
@ -178,10 +178,6 @@ void MainApplication::loadSettings()
|
||||
|
||||
QupZilla* MainApplication::getWindow()
|
||||
{
|
||||
QupZilla *active = qobject_cast<QupZilla*>(QApplication::activeWindow());
|
||||
if (active)
|
||||
return active;
|
||||
|
||||
for(int i=0; i<m_mainWindows.count(); i++) {
|
||||
if (!m_mainWindows.at(i))
|
||||
continue;
|
||||
@ -233,9 +229,9 @@ void MainApplication::addNewTab(QUrl url)
|
||||
void MainApplication::makeNewWindow(bool tryRestore, const QUrl &startUrl)
|
||||
{
|
||||
QupZilla* newWindow = new QupZilla(tryRestore, startUrl);
|
||||
newWindow->show();
|
||||
connect(newWindow, SIGNAL(message(MainApplication::MessageType,bool)), this, SLOT(sendMessages(MainApplication::MessageType,bool)));
|
||||
m_mainWindows.append(newWindow);
|
||||
newWindow->show();
|
||||
}
|
||||
|
||||
void MainApplication::connectDatabase()
|
||||
@ -282,7 +278,6 @@ void MainApplication::quitApplication()
|
||||
return;
|
||||
}
|
||||
|
||||
delete m_updater;
|
||||
m_isClosing = true;
|
||||
|
||||
if (m_mainWindows.count() > 0)
|
||||
|
@ -67,8 +67,8 @@ public:
|
||||
inline QString getActiveLanguage() { return m_activeLanguage; }
|
||||
inline bool isClosing() { return m_isClosing; }
|
||||
inline bool isExited() { return m_isExited; }
|
||||
inline int windowCount() { return m_mainWindows.count(); }
|
||||
bool checkProfileDir();
|
||||
inline int windowCount() { return m_mainWindows.count(); }
|
||||
|
||||
QupZilla* getWindow();
|
||||
BookmarksManager* bookmarksManager();
|
||||
|
@ -655,7 +655,7 @@ void QupZilla::closeEvent(QCloseEvent* event)
|
||||
if (mApp->isClosing())
|
||||
return;
|
||||
if (mApp->windowCount() == 1) {
|
||||
quitApp();
|
||||
quitApp() ? event->accept() : event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -664,20 +664,22 @@ void QupZilla::closeEvent(QCloseEvent* event)
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void QupZilla::quitApp()
|
||||
bool QupZilla::quitApp()
|
||||
{
|
||||
QSettings settings(m_activeProfil+"settings.ini", QSettings::IniFormat);
|
||||
settings.beginGroup("Web-URL-Settings");
|
||||
|
||||
if (settings.value("afterLaunch",0).toInt()!=2 && m_tabWidget->count()>1) {
|
||||
QMessageBox::StandardButton button = QMessageBox::warning(this, tr("There are still open tabs"),
|
||||
tr("There are still %1 open tabs and your session won't be stored. Are you sure to quit?").arg(m_tabWidget->count()), QMessageBox::Yes | QMessageBox::No);
|
||||
tr("There are still %1 open tabs and your session won't be stored. Are you sure to quit?").arg(m_tabWidget->count()), QMessageBox::Yes | QMessageBox::No);
|
||||
if (button != QMessageBox::Yes)
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
settings.endGroup();
|
||||
|
||||
mApp->aboutToCloseWindow(this);
|
||||
mApp->quitApplication();
|
||||
return true;
|
||||
}
|
||||
|
||||
QupZilla::~QupZilla()
|
||||
|
@ -182,7 +182,7 @@ private slots:
|
||||
void fullScreen(bool make);
|
||||
void startPrivate(bool state);
|
||||
|
||||
void quitApp();
|
||||
bool quitApp();
|
||||
|
||||
private:
|
||||
void setupUi();
|
||||
|
@ -241,7 +241,7 @@ bool DownloadManager::canClose()
|
||||
|
||||
void DownloadManager::closeEvent(QCloseEvent *e)
|
||||
{
|
||||
if (!mApp->getWindow()) { // No main windows -> we are going to quit
|
||||
if (mApp->windowCount() == 0) { // No main windows -> we are going to quit
|
||||
if (!canClose()){
|
||||
QMessageBox::StandardButton button = QMessageBox::warning(this, tr("Warning"),
|
||||
tr("Are you sure to quit? All uncompleted downloads will be cancelled!"), QMessageBox::Yes | QMessageBox::No);
|
||||
|
@ -170,7 +170,6 @@ Preferences::Preferences(QupZilla* mainClass, QWidget *parent) :
|
||||
else
|
||||
ui->useDefined->setChecked(true);
|
||||
connect(ui->useDefined, SIGNAL(toggled(bool)), this, SLOT(downLocChanged(bool)));
|
||||
ui->closeDownDialogOnFinish->setChecked( settings.value("autoCloseOnFinish",false).toBool() );
|
||||
connect(ui->downButt, SIGNAL(clicked()), this, SLOT(chooseDownPath()));
|
||||
downLocChanged(ui->useDefined->isChecked());
|
||||
settings.endGroup();
|
||||
@ -431,7 +430,6 @@ void Preferences::saveSettings()
|
||||
text+="/";
|
||||
settings.setValue("defaultDownloadPath",text);
|
||||
}
|
||||
settings.setValue("autoCloseOnFinish",ui->closeDownDialogOnFinish->isChecked());
|
||||
settings.endGroup();
|
||||
|
||||
//BROWSING
|
||||
|
@ -1039,27 +1039,20 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1" colspan="2">
|
||||
<widget class="QCheckBox" name="closeDownDialogOnFinish">
|
||||
<property name="text">
|
||||
<string>Automatically close download dialog after finish</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1" colspan="2">
|
||||
<widget class="QRadioButton" name="askEverytime">
|
||||
<property name="text">
|
||||
<string>Ask everytime for download location</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1" colspan="2">
|
||||
<item row="4" column="1" colspan="2">
|
||||
<widget class="QRadioButton" name="useDefined">
|
||||
<property name="text">
|
||||
<string>Use defined location: </string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1" colspan="3">
|
||||
<item row="5" column="1" colspan="3">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="downLoc"/>
|
||||
@ -1073,7 +1066,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="7" column="2">
|
||||
<item row="6" column="2">
|
||||
<spacer name="verticalSpacer_10">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
@ -1086,36 +1079,7 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<spacer name="horizontalSpacer_13">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="3" column="3">
|
||||
<spacer name="horizontalSpacer_17">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="5" column="3">
|
||||
<item row="4" column="3">
|
||||
<spacer name="horizontalSpacer_18">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
@ -1128,7 +1092,7 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<item row="5" column="0">
|
||||
<spacer name="horizontalSpacer_19">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
|
@ -1495,7 +1495,7 @@ neexistuje!</translation>
|
||||
<message>
|
||||
<location filename="../src/preferences/preferences.ui" line="1424"/>
|
||||
<source>SSL Manager</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Správca SSL</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/preferences/preferences.ui" line="1463"/>
|
||||
@ -2052,12 +2052,12 @@ Prosím pridajte si nejaký kliknutím na RSS ikonku v navigačnom riadku.</tran
|
||||
<message>
|
||||
<location filename="../src/preferences/sslmanager.cpp" line="56"/>
|
||||
<source><b>Organization: </b></source>
|
||||
<translation type="unfinished"><b>Organizácia: </b></translation>
|
||||
<translation><b>Organizácia: </b></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/preferences/sslmanager.cpp" line="57"/>
|
||||
<source><b>Domain Name: </b></source>
|
||||
<translation type="unfinished"><b>Doména: </b></translation>
|
||||
<translation><b>Doména: </b></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/preferences/sslmanager.cpp" line="58"/>
|
||||
@ -2077,7 +2077,7 @@ Prosím pridajte si nejaký kliknutím na RSS ikonku v navigačnom riadku.</tran
|
||||
<message>
|
||||
<location filename="../src/preferences/sslmanager.cpp" line="61"/>
|
||||
<source><b>Expiration Date: </b></source>
|
||||
<translation type="unfinished"><b>Platnosť do: </b></translation>
|
||||
<translation><b>Platnosť do: </b></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/preferences/sslmanager.cpp" line="67"/>
|
||||
|
Loading…
Reference in New Issue
Block a user