tag 321413 patch On Sun, Sep 04, 2005, Mohammed Adnène Trojette wrote: > severity 321413 serious > thanks > > Steve Langasek suggests that "Safe Password (*.dat)" file should be > default. > > Thus I upgrade this bug to its original serious severity and try to > write a patch for this. Sorry for the noise, though.
Here is a patch. -- adn Mohammed Adnène Trojette
diff -urN mypasswordsafe-0.0.20041004.orig/src/mypasswordsafe.ui.h mypasswordsafe-0.0.20041004/src/mypasswordsafe.ui.h --- mypasswordsafe-0.0.20041004.orig/src/mypasswordsafe.ui.h 2004-10-04 05:04:12.000000000 +0200 +++ mypasswordsafe-0.0.20041004/src/mypasswordsafe.ui.h 2005-09-04 02:19:56.629109040 +0200 @@ -547,7 +547,7 @@ QString all_safes(tr("All Safes (%1)").arg(Safe::getExtensions())); QString all_files(tr("All Files (*)")); - QString types(QString("%1\n%2\n%3").arg(all_safes).arg(Safe::getTypes()).arg(all_files)); + QString types(QString("%2\n%1\n%3").arg(all_safes).arg(Safe::getTypes()).arg(all_files)); QFileDialog file_dlg(QString::null, types, this, "file", true); diff -urN mypasswordsafe-0.0.20041004.orig/src/safeserializer.cpp mypasswordsafe-0.0.20041004/src/safeserializer.cpp --- mypasswordsafe-0.0.20041004.orig/src/safeserializer.cpp 2004-10-02 05:26:43.000000000 +0200 +++ mypasswordsafe-0.0.20041004/src/safeserializer.cpp 2005-09-04 02:19:56.141183216 +0200 @@ -42,10 +42,10 @@ using namespace std; SafeSerializer::SerializerVec SafeSerializer::m_serializers; -PlainTextLizer _plain_text_lizer; BlowfishLizer2 _blowfish_lizer2; BlowfishLizer _blowfish_lizer; XmlSerializer _xml_serializer; +PlainTextLizer _plain_text_lizer; SafeSerializer::SafeSerializer(const QString &extension, const QString &name) : m_extension(extension), m_name(name)